lib/integrations: Remove Integration.doc_context.

An Integration object doesn't need access to the context dict used
to render its doc.md, since the context dict is just passed directly to
render_markdown_path.
This commit is contained in:
Eeshan Garg
2017-11-21 22:37:51 -03:30
committed by Tim Abbott
parent 600ee90a38
commit 73d0f1db81
2 changed files with 1 additions and 8 deletions

View File

@@ -61,7 +61,6 @@ class Integration:
self.secondary_line_text = secondary_line_text
self.legacy = legacy
self.doc = doc
self.doc_context = None # type: Optional[Dict[Any, Any]]
for category in categories:
if category not in CATEGORIES:
@@ -87,10 +86,6 @@ class Integration:
# type: () -> bool
return True
def add_doc_context(self, context):
# type: (Dict[Any, Any]) -> None
self.doc_context = context
def get_logo_url(self):
# type: () -> Optional[str]
logo_file_path_svg = str(pathlib.PurePath(