Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
Revert "Merge pull request #1 from rossjrw/signals"
Browse files Browse the repository at this point in the history
This reverts commit 979d0e8, reversing
changes made to 15075c4.
  • Loading branch information
rossjrw committed Feb 14, 2020
1 parent 979d0e8 commit 712c261
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 170 deletions.
51 changes: 0 additions & 51 deletions example/plugins/signals.py

This file was deleted.

12 changes: 0 additions & 12 deletions pyaib/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,6 @@ def wrapper(func):
handles = watches


def awaits_signal(*signals):
"""Define a series of signals to later be subscribed to"""
def wrapper(func):
splugs = _get_plugs(func, 'signals')
splugs.extend([signal for signal in signals if signal not in splugs])
return func
return wrapper


class _Ignore(EasyDecorator):
"""Only pass if triggers is from user not ignored"""
def wrapper(dec, irc_c, msg, *args):
Expand Down Expand Up @@ -344,9 +335,6 @@ def _install_hooks(self, context, hooked_methods):
elif kind == 'parsers':
for name, chain in args:
self._add_parsers(method, name, chain)
elif kind == 'signals':
for signal in args:
context.signals(signal).observe(method)

def _add_parsers(self, method, name, chain):
""" Handle Message parser adding and chaining """
Expand Down
2 changes: 0 additions & 2 deletions pyaib/ircbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from .config import Config
from .events import Events
from .timers import Timers
from .signals import Signals
from .components import ComponentManager
from . import irc

Expand All @@ -55,7 +54,6 @@ def __init__(self, *args, **kargs):
#Install most basic fundamental functionality
install('events', self._loadComponent(Events, False))
install('timers', self._loadComponent(Timers, False))
install('signals', self._loadComponent(Signals, False))

#Load the ComponentManager and load components
autoload = ['triggers', 'channels', 'plugins'] # Force these to load
Expand Down
105 changes: 0 additions & 105 deletions pyaib/signals.py

This file was deleted.

0 comments on commit 712c261

Please sign in to comment.