summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/util/path_helpers_posix.cc
diff options
context:
space:
mode:
authornick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 05:11:11 +0000
committernick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 05:11:11 +0000
commit568d05fc2a803feff55660a9b2afa2dc1f068932 (patch)
tree05d1c5ca3e5994fa39da59b257c8b6bfd70d23f4 /chrome/browser/sync/util/path_helpers_posix.cc
parentef4fa3177f2dad46714d30e42b3582b262e3fb87 (diff)
downloadchromium_src-568d05fc2a803feff55660a9b2afa2dc1f068932.zip
chromium_src-568d05fc2a803feff55660a9b2afa2dc1f068932.tar.gz
chromium_src-568d05fc2a803feff55660a9b2afa2dc1f068932.tar.bz2
sync: get rid of path_helpers files.
Patch from Thiago Farina (thiago.farina@gmail.com) BUG=26443 TEST=None Review URL: http://codereview.chromium.org/414072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/util/path_helpers_posix.cc')
-rw-r--r--chrome/browser/sync/util/path_helpers_posix.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/chrome/browser/sync/util/path_helpers_posix.cc b/chrome/browser/sync/util/path_helpers_posix.cc
index db6100b..e69de29 100644
--- a/chrome/browser/sync/util/path_helpers_posix.cc
+++ b/chrome/browser/sync/util/path_helpers_posix.cc
@@ -1,22 +0,0 @@
-// Copyright (c) 2009 The Chromium 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 "chrome/browser/sync/util/path_helpers.h"
-
-#include "build/build_config.h"
-
-#if ((!defined(OS_LINUX)) && (!defined(OS_MACOSX)))
-#error Compile this file on Mac OS X or Linux only.
-#endif
-
-using std::string;
-
-// Convert /s to :s.
-string MakePathComponentOSLegal(const string& component) {
- if (string::npos == component.find("/"))
- return "";
- string new_name(component);
- std::replace(new_name.begin(), new_name.end(), '/', ':');
- return new_name;
-}