Bug 913953 - Part c: Remove unused FSRef code; r=ehsan
authorMs2ger <ms2ger@gmail.com>
Tue, 10 Sep 2013 09:03:31 +0200
changeset 146224 e6eadf6177a9f2185ee1f08a8060d85cd3391152
parent 146223 3d5ec64ea71d7951117729adafb996f892fbcf76
child 146225 5316beb6adb079670a57626ad9ef1b0021e11690
push id25250
push userMs2ger@gmail.com
push dateTue, 10 Sep 2013 07:05:27 +0000
treeherdermozilla-central@be1053dc223b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs913953
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 913953 - Part c: Remove unused FSRef code; r=ehsan
ipc/chromium/src/base/mac_util.h
ipc/chromium/src/base/mac_util.mm
--- a/ipc/chromium/src/base/mac_util.h
+++ b/ipc/chromium/src/base/mac_util.h
@@ -1,22 +1,15 @@
 // Copyright (c) 2008 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.
 
 #ifndef BASE_MAC_UTIL_H_
 #define BASE_MAC_UTIL_H_
 
-struct FSRef;
-
-#include <string>
-
 namespace mac_util {
 
-std::string PathFromFSRef(const FSRef& ref);
-bool FSRefFromPath(const std::string& path, FSRef* ref);
-
 // Returns true if the application is running from a bundle
 bool AmIBundled();
 
 }  // namespace mac_util
 
 #endif  // BASE_MAC_UTIL_H_
--- a/ipc/chromium/src/base/mac_util.mm
+++ b/ipc/chromium/src/base/mac_util.mm
@@ -9,29 +9,16 @@
 
 #include "base/file_path.h"
 #include "base/logging.h"
 #include "base/scoped_cftyperef.h"
 #include "base/sys_string_conversions.h"
 
 namespace mac_util {
 
-std::string PathFromFSRef(const FSRef& ref) {
-  scoped_cftyperef<CFURLRef> url(
-      CFURLCreateFromFSRef(kCFAllocatorDefault, &ref));
-  NSString *path_string = [(NSURL *)url.get() path];
-  return [path_string fileSystemRepresentation];
-}
-
-bool FSRefFromPath(const std::string& path, FSRef* ref) {
-  OSStatus status = FSPathMakeRef((const UInt8*)path.c_str(),
-                                  ref, nil);
-  return status == noErr;
-}
-
 // Adapted from http://developer.apple.com/carbon/tipsandtricks.html#AmIBundled
 bool AmIBundled() {
   ProcessSerialNumber psn = {0, kCurrentProcess};
 
   FSRef fsref;
   if (GetProcessBundleLocation(&psn, &fsref) != noErr)
     return false;