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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/parse/translate.py

Issue 395203003: Mojo: Mojom: Remove some dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « mojo/public/tools/bindings/pylib/mojom/parse/parser.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/pylib/mojom/parse/translate.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/parse/translate.py b/mojo/public/tools/bindings/pylib/mojom/parse/translate.py
index 6e64adde277257bc8b507170b4b4d0eb40ef2e66..c4798bf0679a2dceea28d371ad37fce709601f60 100644
--- a/mojo/public/tools/bindings/pylib/mojom/parse/translate.py
+++ b/mojo/public/tools/bindings/pylib/mojom/parse/translate.py
@@ -9,13 +9,6 @@ import ast
import re
-def _MapTreeForName(func, tree, name):
- assert isinstance(name, str)
- if not tree:
- return []
- return [func(subtree) for subtree in tree \
- if isinstance(subtree, tuple) and subtree[0] == name]
-
def _MapTreeForType(func, tree, type_to_map):
assert isinstance(type_to_map, type)
if not tree:
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom/parse/parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698