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

Unified Diff: sky/engine/bindings2/scripts/utilities.py

Issue 914413004: Add a new bindings2/scripts directory for Dart bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove idlrenderer.py it's not used Created 5 years, 10 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: sky/engine/bindings2/scripts/utilities.py
diff --git a/sky/engine/bindings/scripts/utilities.py b/sky/engine/bindings2/scripts/utilities.py
similarity index 91%
copy from sky/engine/bindings/scripts/utilities.py
copy to sky/engine/bindings2/scripts/utilities.py
index 5dc5e7c6fb6e1eab76f31eb6b1377dde48250ad7..8e7745cd28cfc5afb28c00c10c371444340a83fa 100644
--- a/sky/engine/bindings/scripts/utilities.py
+++ b/sky/engine/bindings2/scripts/utilities.py
@@ -39,21 +39,6 @@ def read_file_to_list(filename):
return [line.rstrip('\n') for line in f]
-def resolve_cygpath(cygdrive_names):
- if not cygdrive_names:
- return []
- cmd = ['cygpath', '-f', '-', '-wa']
- process = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- idl_file_names = []
- for file_name in cygdrive_names:
- process.stdin.write('%s\n' % file_name)
- process.stdin.flush()
- idl_file_names.append(process.stdout.readline().rstrip())
- process.stdin.close()
- process.wait()
- return idl_file_names
-
-
def read_idl_files_list_from_file(filename):
"""Similar to read_file_to_list, but also resolves cygpath."""
with open(filename) as input_file:
@@ -151,11 +136,6 @@ def is_callback_interface_from_idl(file_contents):
return bool(match)
-def is_dictionary_from_idl(file_contents):
- match = re.search(r'dictionary\s+\w+\s*{', file_contents)
- return bool(match)
-
-
def get_parent_interface(file_contents):
match = re.search(r'interface\s+'
r'\w+\s*'
« no previous file with comments | « sky/engine/bindings2/scripts/templates/methods_cpp.template ('k') | sky/engine/bindings2/scripts/v8_attributes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698