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

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

Issue 1824253002: Remove the mojom-sources flag from dart_pkg.py (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 | « mojo/public/tools/dart_list_mojoms.py ('k') | 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 a00e67e451afd41b847b57f2eeab8953b1fb48c5..dd0724691ef7201caa0a1084f2f4b6dcfd641dbf 100755
--- a/mojo/public/tools/dart_pkg.py
+++ b/mojo/public/tools/dart_pkg.py
@@ -19,13 +19,6 @@ USE_LINKS = sys.platform != "win32"
DART_ANALYZE = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"dart_analyze.py")
-def mojom_dart_filter(path):
- if os.path.isdir(path):
- return True
- # Don't include all .dart, just .mojom.dart.
- return path.endswith('.mojom.dart')
-
-
def dart_filter(path):
if os.path.isdir(path):
return True
@@ -34,13 +27,6 @@ def dart_filter(path):
return ext == '.dart'
-def mojom_filter(path):
- if os.path.isdir(path):
- return True
- _, ext = os.path.splitext(path)
- return ext == '.mojom'
-
-
def ensure_dir_exists(path):
abspath = os.path.abspath(path)
if not os.path.exists(abspath):
@@ -205,11 +191,6 @@ def main():
help='Package entry points for analyzer',
nargs='*',
default=[])
- parser.add_argument('--mojom-sources',
- metavar='mojom_sources',
- help='.mojom and .mojom.dart sources',
- nargs='*',
- default=[])
parser.add_argument('--sdk-ext-directories',
metavar='sdk_ext_directories',
help='Directory containing .dart sources',
« no previous file with comments | « mojo/public/tools/dart_list_mojoms.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698