Removes redundant and wrong check.
authorbensong@google.com <bensong@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 8 Feb 2013 19:02:21 +0000 (19:02 +0000)
committerbensong@google.com <bensong@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 8 Feb 2013 19:02:21 +0000 (19:02 +0000)
Review URL: https://codereview.appspot.com/7308072

git-svn-id: http://skia.googlecode.com/svn/trunk@7676 2bbb7eff-a529-9590-31e7-b0007b416f81

bench/gen_skp_ranges.py

index 9c42f10..b9e1194 100755 (executable)
@@ -98,11 +98,12 @@ def OutputSkpBenchExpectations(rev_min, rev_max, representation_alg):
         obj.name.find('_data_skp_') < 0):
       continue
     # Ignores uninterested platforms.
-    platform = obj.name.split('/')[1][5:]  # Removes "Skia_" prefix
+    platform = obj.name.split('/')[1]
     if not platform.startswith('Skia_'):
-      platform = obj.name.split('/')[2][5:]  # Removes "Skia_" prefix.
-      if not platform.startswith('Skia_'):
-        continue  # Not an object with platform info.
+      platform = obj.name.split('/')[2]
+    if not platform.startswith('Skia_'):
+      continue  # Ignores non-platform object
+    platform = platform[5:]  # Removes "Skia_" prefix.
     if platform not in PLATFORMS:
       continue
     # Filters by revision.