Index: mojo/public/tools/bindings/pylib/mojom/generate/generator.py |
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py |
index 96246a2e355fd3e5dae88fb65ace9e1ba8a55766..707028568c3ccea4ee07c49e45fa6c2a6ee698d0 100644 |
--- a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py |
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py |
@@ -60,18 +60,6 @@ def IsMoveOnlyKind(kind): |
def StudlyCapsToCamel(studly): |
return studly[0].lower() + studly[1:] |
-def VerifyTokenType(token, expected): |
- """Used to check that arrays and objects are used correctly as default |
- values. Arrays are tokens that look like ('ARRAY', element0, element1...). |
- See mojom_parser.py for their representation. |
- """ |
- if not isinstance(token, tuple): |
- raise Exception("Expected token type '%s'. Invalid token '%s'." % |
- (expected, token)) |
- if token[0] != expected: |
- raise Exception("Expected token type '%s'. Got '%s'." % |
- (expected, token[0])) |
- |
class Generator(object): |
# Pass |output_dir| to emit files to disk. Omit |output_dir| to echo all |
# files to stdout. |