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

Unified Diff: mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_directory.py

Issue 1709333002: Remove mojom_fetcher. (Closed) Base URL: https://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
Index: mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_directory.py
diff --git a/mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_directory.py b/mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_directory.py
deleted file mode 100644
index 15fe34d6d0d8aa8ffbaacc8ea37033a797675715..0000000000000000000000000000000000000000
--- a/mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_directory.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import os
-
-from fetcher.dependency import group_target_name
-
-class MojomDirectory(object):
- """This class represents a directory that directly holds mojom files, in the
- external directory structure."""
- def __init__(self, path):
- self.path = path
- self.mojoms = []
-
- def add_mojom(self, mojom):
- self.mojoms.append(mojom)
-
- def get_jinja_parameters(self, include_dirs):
- """Get the Jinja parameters to construct the BUILD.gn file of this
- directory."""
- params = {}
- params["group_name"] = group_target_name(self.path)
- params["mojoms"] = []
- for mojom in self.mojoms:
- params["mojoms"].append(mojom.get_jinja_parameters(include_dirs))
- return params
-
- def get_build_gn_path(self):
- return os.path.join(self.path, "BUILD.gn")

Powered by Google App Engine
This is Rietveld 408576698