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

Unified Diff: tools/json_schema_compiler/compiler.py

Issue 23549025: Clean up JSON Schema Compiler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 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
Index: tools/json_schema_compiler/compiler.py
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py
index 4ecb699bf9c6e235175eb34c6ec7db2f407efaef..7e9024ce21b5fa80159adf469eda3a650dc0370b 100755
--- a/tools/json_schema_compiler/compiler.py
+++ b/tools/json_schema_compiler/compiler.py
@@ -25,7 +25,7 @@ from cpp_generator import CppGenerator
from cpp_type_generator import CppTypeGenerator
from dart_generator import DartGenerator
import json_schema
-from model import Model, UnixName
+from model import Model
from schema_loader import SchemaLoader
# Names of supported code generators, as specified on the command-line.
@@ -78,10 +78,6 @@ def GenerateSchema(generator,
sys.exit("Filename %s is illegal. Name files using unix_hacker style." %
schema_filename)
- # The output filename must match the input filename for gyp to deal with it
dhnishi (use Chromium) 2013/09/09 22:55:43 I removed this bit because the code was never used
not at google - send to devlin 2013/09/09 23:50:25 Eh who knows. Delete SGTM.
- # properly.
- out_file = namespace.unix_name
-
# Construct the type generator with all the namespaces in this model.
type_generator = CppTypeGenerator(api_model,
schema_loader,

Powered by Google App Engine
This is Rietveld 408576698