Bug 1518639: Remote unused mProfileName member. r=froydnj
authorDave Townsend <dtownsend@oxymoronical.com>
Fri, 08 Feb 2019 11:22:23 -0800
changeset 520642 678a6db4372ec4dad41a13311fd50871ff505909
parent 520641 30cd61daa60513ca4c31cd466ad6868fb7859317
child 520643 fbef638149b4426032f58903a9abf480341a3ff8
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1518639
milestone67.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 1518639: Remote unused mProfileName member. r=froydnj Differential Revision: https://phabricator.services.mozilla.com/D19416
toolkit/xre/nsAppRunner.cpp
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -2881,17 +2881,16 @@ class XREMain {
 #if defined(MOZ_WIDGET_GTK)
   RefPtr<nsRemoteService> mRemoteService;
 #endif
 
   UniquePtr<ScopedXPCOMStartup> mScopedXPCOM;
   UniquePtr<XREAppData> mAppData;
 
   nsXREDirProvider mDirProvider;
-  nsAutoCString mProfileName;
   nsAutoCString mDesktopStartupID;
 
   bool mStartOffline;
   bool mShuttingDown;
 #if defined(MOZ_WIDGET_GTK)
   bool mDisableRemote;
 #endif
 
@@ -4097,23 +4096,16 @@ int XREMain::XRE_mainStartup(bool* aExit
         return 1;
       }
     } else {
       NS_WARNING("Profile reset failed.");
       return 1;
     }
   }
 
-  if (profile) {
-    rv = profile->GetName(mProfileName);
-    if (NS_FAILED(rv)) {
-      mProfileName.Truncate(0);
-    }
-  }
-
   gProfileLock = mProfileLock;
 
   nsAutoCString version;
   BuildVersion(version);
 
 #ifdef TARGET_OS_ABI
   NS_NAMED_LITERAL_CSTRING(osABI, TARGET_OS_ABI);
 #else