Bug 1518575: Remove unused nsIToolkitProfileService.lockProfilePath. r=froydnj
authorDave Townsend <dtownsend@oxymoronical.com>
Wed, 09 Jan 2019 15:17:13 +0000
changeset 496893 e8293d81fcdb7e2048deeb536e59b4c2aee25179
parent 496892 cad6506b2f5d1c179603ef7a125219ef94c7e04a
child 496894 5e388e19a12668f3e066317a63c439932fab4242
push idunknown
push userunknown
push dateunknown
reviewersfroydnj
bugs1518575
milestone66.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 1518575: Remove unused nsIToolkitProfileService.lockProfilePath. r=froydnj Differential Revision: https://phabricator.services.mozilla.com/D15965
toolkit/profile/nsIToolkitProfileService.idl
toolkit/profile/nsToolkitProfileService.cpp
--- a/toolkit/profile/nsIToolkitProfileService.idl
+++ b/toolkit/profile/nsIToolkitProfileService.idl
@@ -41,23 +41,16 @@ interface nsIToolkitProfileService : nsI
      * Get a profile by name. This is mainly for use by the -P
      * commandline flag.
      *
      * @param aName The profile name to find.
      */
     nsIToolkitProfile getProfileByName(in AUTF8String aName);
 
     /**
-     * Lock an arbitrary path as a profile. If the path does not exist, it
-     * will be created and the defaults copied from the application directory.
-     */
-    nsIProfileLock lockProfilePath(in nsIFile aDirectory,
-                                   in nsIFile aTempDirectory);
-
-    /**
      * Create a new profile.
      *
      * The profile temporary directory will be chosen based on where the
      * profile directory is located.
      * 
      * @param aRootDir
      *        The profile directory. May be null, in which case a suitable
      *        default will be chosen based on the profile name.
--- a/toolkit/profile/nsToolkitProfileService.cpp
+++ b/toolkit/profile/nsToolkitProfileService.cpp
@@ -590,23 +590,16 @@ nsToolkitProfileService::GetProfileByNam
       return NS_OK;
     }
     curP = curP->mNext;
   }
 
   return NS_ERROR_FAILURE;
 }
 
-NS_IMETHODIMP
-nsToolkitProfileService::LockProfilePath(nsIFile* aDirectory,
-                                         nsIFile* aLocalDirectory,
-                                         nsIProfileLock** aResult) {
-  return NS_LockProfilePath(aDirectory, aLocalDirectory, nullptr, aResult);
-}
-
 nsresult NS_LockProfilePath(nsIFile* aPath, nsIFile* aTempPath,
                             nsIProfileUnlocker** aUnlocker,
                             nsIProfileLock** aResult) {
   RefPtr<nsToolkitProfileLock> lock = new nsToolkitProfileLock();
   if (!lock) return NS_ERROR_OUT_OF_MEMORY;
 
   nsresult rv = lock->Init(aPath, aTempPath, aUnlocker);
   if (NS_FAILED(rv)) return rv;