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

Unified Diff: mojo/public/tools/dart_pkg.py

Issue 1710193002: Remove dead code from dart_pkg.py (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/dart_pkg.py
diff --git a/mojo/public/tools/dart_pkg.py b/mojo/public/tools/dart_pkg.py
index f889e9a6b16b0a04bccf6c391dff4a512ac62b78..a00e67e451afd41b847b57f2eeab8953b1fb48c5 100755
--- a/mojo/public/tools/dart_pkg.py
+++ b/mojo/public/tools/dart_pkg.py
@@ -14,15 +14,6 @@ import shutil
import subprocess
import sys
-# Disable lint check for finding modules:
-# pylint: disable=F0401
-
-sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
- "bindings/pylib"))
-
-from mojom.parse.parser import Parse
-from mojom.parse.translate import Translate
-
USE_LINKS = sys.platform != "win32"
DART_ANALYZE = os.path.join(os.path.dirname(os.path.abspath(__file__)),
@@ -160,17 +151,6 @@ def remove_broken_symlinks(root_dir):
remove_broken_symlink(path)
-def mojom_path(filename):
- with open(filename) as f:
- source = f.read()
- tree = Parse(source, filename)
- _, name = os.path.split(filename)
- mojom = Translate(tree, name)
- elements = mojom['namespace'].split('.')
- elements.append("%s" % mojom['name'])
- return os.path.join(*elements)
-
-
def analyze_entrypoints(dart_sdk, package_root, entrypoints):
cmd = [ "python", DART_ANALYZE ]
cmd.append("--dart-sdk")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698