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

Unified Diff: tools/dom/scripts/monitored.py

Issue 12463028: "Reverting 19586" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/dom/scripts/htmlrenamer.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/monitored.py
diff --git a/tools/dom/scripts/monitored.py b/tools/dom/scripts/monitored.py
index 06dc4dd2da9b5b0b3fd77919dedf4937336bf7ca..e90330ae7c6ae66cfe2c727af35871efbfb1cd1f 100644
--- a/tools/dom/scripts/monitored.py
+++ b/tools/dom/scripts/monitored.py
@@ -19,7 +19,7 @@ class MonitoredCollection(object):
_monitored_values.append(self)
class Dict(MonitoredCollection):
- """Wrapper for a dict that reports unused keys."""
+ """Wrapper for a read-only dict that reports unused keys."""
def __init__(self, name, map):
super(Dict, self).__init__(name)
@@ -50,7 +50,7 @@ class Dict(MonitoredCollection):
class Set(MonitoredCollection):
- """Wrapper for a set that reports unused keys."""
+ """Wrapper for a read-only set that reports unused keys."""
def __init__(self, name, a_set):
super(Set, self).__init__(name)
@@ -60,12 +60,6 @@ class Set(MonitoredCollection):
self._used_keys.add(key)
return key in self._set
- def __iter__(self):
- return self._set.__iter__()
-
- def add(self, key):
- self._set += [key]
-
def CheckUsage(self):
for v in sorted(self._set):
if v not in self._used_keys:
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698