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

Unified Diff: chrome/common/extensions/docs/server2/api_list_data_source.py

Issue 56083005: Docserver: Cleanup to remove the APIListDataSource dependency from (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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: chrome/common/extensions/docs/server2/api_list_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_list_data_source.py b/chrome/common/extensions/docs/server2/api_list_data_source.py
index c84a34b88c2b63fd12658f6dc58592f87cd2d39d..df4bfaf97566a95e699cce7853e340e2b13b6664 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -98,13 +98,6 @@ class APIListDataSource(object):
self._factory = factory
self._object_store = object_store_creator.Create(APIListDataSource)
- def GetAllNames(self):
- apis = []
- for platform in ['apps', 'extensions']:
- for category in ['chrome', 'experimental', 'private']:
- apis.extend(self.get(platform).get(category))
- return [api['name'] for api in apis]
-
def _GetCachedAPIData(self):
data = self._object_store.Get('api_data').Get()
if data is None:
« no previous file with comments | « chrome/common/extensions/docs/server2/api_data_source_test.py ('k') | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698