diff options
author | Christian Geier <geier@lostpackets.de> | 2023-10-29 17:04:38 +0100 |
---|---|---|
committer | Christian Geier <geier@lostpackets.de> | 2024-04-11 21:21:44 +0200 |
commit | f916f00935871584ee4308d333cfddf886e7446c (patch) | |
tree | b1f64cfc6798ebfc2dc682755aaadeea8fae2603 | |
parent | 2fedc40158e245c64cfe5170b7c1f9bd40167550 (diff) |
remove dead code
-rw-r--r-- | khal/plugins.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/khal/plugins.py b/khal/plugins.py index fc3d5096..07a67944 100644 --- a/khal/plugins.py +++ b/khal/plugins.py @@ -3,9 +3,6 @@ from typing import Dict, List, Tuple from khal._compat import importlib_metadata -# from khal._compat import Protocol, importlib_metadata -# from khal.khalendar.typing import Postprocess, Render - # This is a shameless ripoff of mdformat's plugin extension API. # see: # https://github.com/executablebooks/mdformat/blob/master/src/mdformat/plugins.py @@ -24,37 +21,3 @@ def _load_color_themes() -> Dict[str, List[Tuple[str, ...]]]: return {ep.name: ep.load() for ep in color_theme_entrypoints} THEMES: Dict[str, List[Tuple[str, ...]],] = _load_color_themes() - -# class ParserExtensionInterface(Protocol): -# """An interface for parser extension plugins.""" - -# # Does the plugin's formatting change Markdown AST or not? -# # (optional, default: False) -# CHANGES_AST: bool = False - -# # A mapping from `RenderTreeNode.type` to a `Render` function that can -# # render the given `RenderTreeNode` type. These override the default -# # `Render` funcs defined in `mdformat.renderer.DEFAULT_RENDERERS`. -# RENDERERS: Mapping[str, Render] - -# # A mapping from `RenderTreeNode.type` to a `Postprocess` that does -# # postprocessing for the output of the `Render` function. Unlike -# # `Render` funcs, `Postprocess` funcs are collaborative: any number of -# # plugins can define a postprocessor for a syntax type and all of them -# # will run in series. -# # (optional) -# POSTPROCESSORS: Mapping[str, Postprocess] - -# @staticmethod -# def add_cli_options(parser: argparse.ArgumentParser) -> None: -# """Add options to the khal CLI, to be stored in mdit.options["mdformat"] -# (optional)""" - -# def _load_parser_extensions() -> dict[str, ParserExtensionInterface]: -# parser_extension_entrypoints = importlib_metadata.entry_points( -# group="khal.parser_extension" -# ) -# return {ep.name: ep.load() for ep in parser_extension_entrypoints} - - -# PARSER_EXTENSIONS: Mapping[str, ParserExtensionInterface] = _load_parser_extensions() |