Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: src/common/util.cc

Issue 460001: Clean up to move NewStringCopy from util to chromoes/string. (Closed)
Patch Set: Removed pw file, changed include format Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/common/util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/common/util.cc
diff --git a/src/common/util.cc b/src/common/util.cc
deleted file mode 100644
index b77200945a27a8a48ad7e425227f4e813ee18111..0000000000000000000000000000000000000000
--- a/src/common/util.cc
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <cstdlib>
-#include <cstring>
-
-char* NewStringCopy(const char* x) {
- char* result = static_cast<char*>(std::malloc(std::strlen(x) + 1));
- std::strcpy(result, x); // NOLINT
- return result;
-}
« no previous file with comments | « src/common/util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698