Skip to content

Commit

Permalink
fixes #186 yes, that can be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Nov 21, 2019
1 parent 64ff07e commit cc91da8
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 180 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Production
* `#188 <https://github.com/prjemian/spec2nexus/issues/188>`_
catenate continued lines before parsing data

* `#186 <https://github.com/prjemian/spec2nexus/issues/186>`_
remove unused code

:2021.1.6: released *2019.11.01*

* `#210 <https://github.com/prjemian/spec2nexus/issues/210>`_
Expand Down
21 changes: 0 additions & 21 deletions src/spec2nexus/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ class PluginManager(object):
~get
~getKey
~get_registry
~get_registry_table
~load_plugins
~match_key
~process
Expand All @@ -216,9 +214,6 @@ def load_plugins(self):
"""
from . import spec
from . import plugins # issue #166: plugins are loaded here, NOT any earlier!

table = self.get_registry_table()
logger.debug(str(table))

return self

Expand Down Expand Up @@ -279,22 +274,6 @@ def process(self, key, *args, **kw):
if handler is not None:
handler().process(*args, **kw)

def get_registry(self):
return self.registry

def get_registry_table(self, print_it=False):
"""return a table of all the known plugins"""
import pyRestTable
tbl = pyRestTable.Table()
tbl.addLabel("control line")
tbl.addLabel("handler class")
for k, v in self.registry.items():
tbl.addRow((k, v))
if print_it:
print("Plugin registry")
print(tbl)
return tbl

def register_control_line_handler(self, handler):
"""
auto-registry of all AutoRegister plugins
Expand Down
Empty file removed tests/trial/__init__.py
Empty file.
23 changes: 0 additions & 23 deletions tests/trial/bacon.py

This file was deleted.

26 changes: 0 additions & 26 deletions tests/trial/example.py

This file was deleted.

70 changes: 0 additions & 70 deletions tests/trial/plugin_base.py

This file was deleted.

26 changes: 0 additions & 26 deletions tests/trial/plugins.py

This file was deleted.

14 changes: 0 additions & 14 deletions tests/trial/spam.py

This file was deleted.

0 comments on commit cc91da8

Please sign in to comment.