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

Unified Diff: lib/dom/scripts/generator.py

Issue 10789010: Do not treat callbacks with no handlers as interfaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 5 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 | « lib/dom/scripts/dartgenerator.py ('k') | lib/dom/scripts/systemfrog.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/generator.py
diff --git a/lib/dom/scripts/generator.py b/lib/dom/scripts/generator.py
index fd758185139ed8fbe841a7de2fa20d655acbcc25..89536907d2ae823913153bec5f19416fd9d1d882 100644
--- a/lib/dom/scripts/generator.py
+++ b/lib/dom/scripts/generator.py
@@ -306,17 +306,6 @@ def AnalyzeConstructor(interface):
info.param_infos = args
return info
-
-def RecognizeCallback(interface):
- """Returns the info for the callback method if the interface smells like a
- callback.
- """
- if 'Callback' not in interface.ext_attrs: return None
- handlers = [op for op in interface.operations if op.id == 'handleEvent']
- if not handlers: return None
- if not (handlers == interface.operations): return None
- return AnalyzeOperation(interface, handlers)
-
def IsDartListType(type):
return type == 'List' or type.startswith('sequence<')
« no previous file with comments | « lib/dom/scripts/dartgenerator.py ('k') | lib/dom/scripts/systemfrog.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698