Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: tools/telemetry/telemetry/core/os_version.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/core/network_controller.py ('k') | tools/telemetry/telemetry/core/platform.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/os_version.py
diff --git a/tools/telemetry/telemetry/core/os_version.py b/tools/telemetry/telemetry/core/os_version.py
deleted file mode 100644
index bc7bd445a6129ea771770e0ef3ecd78a6bc6bd5c..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/core/os_version.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# pylint: disable=protected-access
-
-
-class OSVersion(str):
- def __new__(cls, friendly_name, sortable_name):
- version = str.__new__(cls, friendly_name)
- version._sortable_name = sortable_name
- return version
-
- def __lt__(self, other):
- return self._sortable_name < other._sortable_name
-
- def __gt__(self, other):
- return self._sortable_name > other._sortable_name
-
- def __le__(self, other):
- return self._sortable_name <= other._sortable_name
-
- def __ge__(self, other):
- return self._sortable_name >= other._sortable_name
-
-
-XP = OSVersion('xp', 5.1)
-VISTA = OSVersion('vista', 6.0)
-WIN7 = OSVersion('win7', 6.1)
-WIN8 = OSVersion('win8', 6.2)
-WIN10 = OSVersion('win10', 10)
-
-LEOPARD = OSVersion('leopard', 105)
-SNOWLEOPARD = OSVersion('snowleopard', 106)
-LION = OSVersion('lion', 107)
-MOUNTAINLION = OSVersion('mountainlion', 108)
-MAVERICKS = OSVersion('mavericks', 109)
-YOSEMITE = OSVersion('yosemite', 1010)
-ELCAPITAN = OSVersion('elcapitan', 1011)
« no previous file with comments | « tools/telemetry/telemetry/core/network_controller.py ('k') | tools/telemetry/telemetry/core/platform.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698