Bug 1017242 - Part 9: remove API 8 code from SysInfo. r=mfinkle

This commit is contained in:
Richard Newman 2014-07-18 16:47:09 -07:00
parent 865346588d
commit cfdf8c593a

View File

@ -47,11 +47,7 @@ public final class SysInfo {
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();