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: trunk/src/tools/json_schema_compiler/cpp_util.py

Issue 25940002: Revert 226826 "This is a preliminary patch to auto-generate the ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 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: trunk/src/tools/json_schema_compiler/cpp_util.py
===================================================================
--- trunk/src/tools/json_schema_compiler/cpp_util.py (revision 226848)
+++ trunk/src/tools/json_schema_compiler/cpp_util.py (working copy)
@@ -24,10 +24,6 @@
// %s
// DO NOT EDIT.
"""
-GENERATED_FEATURE_MESSAGE = """// GENERATED FROM THE FEATURE DEFINITIONS IN
-// %s
-// DO NOT EDIT.
-"""
def Classname(s):
"""Translates a namespace name or function name into something more
@@ -122,18 +118,3 @@
for component in reversed(namespace.split('::')):
c.Append('} // namespace %s' % component)
return c
-
-
-def ConstantName(feature_name):
- """Returns a kName for a feature's name.
- """
- return ('k' + ''.join(word[0].upper() + word[1:]
- for word in feature_name.replace('.', ' ').split()))
-
-
-def CamelCase(unix_name):
- return ''.join(word.capitalize() for word in unix_name.split('_'))
-
-
-def ClassName(filepath):
- return CamelCase(os.path.split(filepath)[1])
« no previous file with comments | « trunk/src/tools/json_schema_compiler/code.py ('k') | trunk/src/tools/json_schema_compiler/features_cc_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698