Bug 1017242 - Part 9: remove API 8 code from SysInfo. r=mfinkle
authorRichard Newman <rnewman@mozilla.com>
Fri, 18 Jul 2014 16:47:09 -0700
changeset 216980 6bfbded8be02dbb3f9c8accf56cf31c798b00607
parent 216979 c3cde1547d1de6b0b8908846af5b40ca821cbb55
child 216981 8bb625db40152d1f5d61aa54ade10862e98c9115
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs1017242
milestone33.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 1017242 - Part 9: remove API 8 code from SysInfo. r=mfinkle
mobile/android/base/SysInfo.java.in
--- a/mobile/android/base/SysInfo.java.in
+++ b/mobile/android/base/SysInfo.java.in
@@ -42,21 +42,17 @@ public final class SysInfo {
        * @return the number of CPU cores, or 1 if the number could not be
        *         determined.
        */
     public static int getCPUCount() {
         if (cpuCount > 0) {
             return cpuCount;
         }
 
-        if (android.os.Build.VERSION.SDK_INT < 9) {
-            return readCPUCount();
-        }
-
-        // Avoid a strict mode warning... but only on devices that have StrictMode.
+        // Avoid a strict mode warning.
         StrictMode.ThreadPolicy savedPolicy = StrictMode.allowThreadDiskReads();
         try {
             return readCPUCount();
         } finally {
             StrictMode.setThreadPolicy(savedPolicy);
         }
     }