mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1053 - Remove conditional android code from widget/
This commit is contained in:
parent
27b8966a39
commit
516bf07de1
9 changed files with 12 additions and 416 deletions
|
|
@ -280,8 +280,6 @@ BlacklistOSToOperatingSystem(const nsAString& os)
|
|||
return OperatingSystem::OSX10_11;
|
||||
else if (os.EqualsLiteral("Darwin 16"))
|
||||
return OperatingSystem::OSX10_12;
|
||||
else if (os.EqualsLiteral("Android"))
|
||||
return OperatingSystem::Android;
|
||||
// For historical reasons, "All" in blocklist means "All Windows"
|
||||
else if (os.EqualsLiteral("All"))
|
||||
return OperatingSystem::Windows;
|
||||
|
|
@ -697,7 +695,7 @@ GfxInfoBase::FindBlocklistedDeviceInList(const nsTArray<GfxDriverInfo>& info,
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(XP_WIN) || defined(ANDROID)
|
||||
#ifdef XP_WIN
|
||||
uint64_t driverVersion;
|
||||
ParseDriverVersion(adapterDriverVersionString, &driverVersion);
|
||||
#endif
|
||||
|
|
@ -736,7 +734,7 @@ GfxInfoBase::FindBlocklistedDeviceInList(const nsTArray<GfxDriverInfo>& info,
|
|||
continue;
|
||||
}
|
||||
|
||||
#if defined(XP_WIN) || defined(ANDROID)
|
||||
#ifdef XP_WIN
|
||||
switch (info[i].mComparisonOp) {
|
||||
case DRIVER_LESS_THAN:
|
||||
match = driverVersion < info[i].mDriverVersion;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue