Index: appengine_apps/trooper_o_matic/lib/cqstats-util.html |
diff --git a/appengine_apps/trooper_o_matic/lib/cqstats-util.html b/appengine_apps/trooper_o_matic/lib/cqstats-util.html |
deleted file mode 100644 |
index da5d034fe3b9a6caac76ff596bec8f5e879496b4..0000000000000000000000000000000000000000 |
--- a/appengine_apps/trooper_o_matic/lib/cqstats-util.html |
+++ /dev/null |
@@ -1,38 +0,0 @@ |
-<!-- |
-Copyright (c) 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. |
---> |
- |
-<link rel="import" href="../lib/sugar.html"> |
- |
-<script> |
-var cqStatsUtil = cqStatsUtil || {}; |
- |
-(function() { |
-var cqLogHost = 'https://chromium-cq-status.appspot.com'; |
- |
-cqStatsUtil.loadStats = function(project, intervalMinutes, names, count) { |
- var url = '{1}/stats/query?{2}'.assign(cqLogHost, Object.toQueryString({ |
- project: project, |
- interval_minutes: intervalMinutes, |
- names: names.join(','), |
- count: count, |
- })); |
- return net.json({url: url}).then(function(json) { |
- return json.results.reverse(); |
- }); |
-}; |
- |
-cqStatsUtil.loadStatItems = function(statName, cqStatsKey) { |
- var url = '{1}/stats/highest/{2}/{3}'.assign(cqLogHost, statName, cqStatsKey); |
- return net.json({url: url, cache: true}); |
-}; |
- |
-cqStatsUtil.namedStat = function(name, cqStats) { |
- return cqStats.stats.find(function(stat) { |
- return stat.name === name; |
- }); |
-}; |
-})(); |
-</script> |