Bug 1462678 - Removed unused code from Gecko r=jchen
authorArshad Kazmi <arshadkazmi42@gmail.com>
Mon, 27 Aug 2018 16:44:47 +0000
changeset 491328 48ca12e943f5f8514dcc01e4ba9ec1888dce8485
parent 491327 9494c03553b9b968194c78602fb75273d39d9ede
child 491329 373020acb0864c4b10ac2a777d143bfd0fca78a0
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1462678
milestone63.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 1462678 - Removed unused code from Gecko r=jchen Differential Revision: https://phabricator.services.mozilla.com/D4295
mobile/android/geckoview/src/main/java/org/mozilla/gecko/CrashReporterService.java
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/CrashReporterService.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/CrashReporterService.java
@@ -191,18 +191,16 @@ public class CrashReporterService extend
             // Find the profile name and path. Since we don't have any other way of getting it within
             // this context we extract it from the crash dump path.
             final File profileDir = passedMinidumpFile.getParentFile().getParentFile();
             final String profileName = getProfileName(profileDir);
 
             if (profileName != null) {
                 // Extract the crash dump ID and telemetry client ID, we need profile access for the latter.
                 final String passedMinidumpName = passedMinidumpFile.getName();
-                // Strip the .dmp suffix from the minidump name to obtain the crash ID.
-                final String crashId = passedMinidumpName.substring(0, passedMinidumpName.length() - 4);
                 final GeckoProfile profile = GeckoProfile.get(this, profileName, profileDir);
                 final String clientId = profile.getClientId();
             }
         } catch (GeckoProfileDirectories.NoMozillaDirectoryException | IOException e) {
             Log.e(LOGTAG, "Cannot send the crash ping: ", e);
         }
 
         // Notify GeckoApp that we've crashed, so it can react appropriately during the next start.