Remove unnecessary code

NetworkIncomingEvent defines base_network_events and generate() already
This commit is contained in:
Philipp Hörist 2018-09-11 00:15:06 +02:00 committed by Philipp Hörist
parent d18f9b0716
commit df9651f33b
14 changed files with 0 additions and 29 deletions

View File

@ -556,17 +556,14 @@ class AdHocCommands:
class AdHocCommandError(NetworkIncomingEvent):
name = 'adhoc-command-error'
base_network_events = []
class AdHocCommandListReceived(NetworkIncomingEvent):
name = 'adhoc-command-list'
base_network_events = []
class AdHocCommandActionResponse(NetworkIncomingEvent):
name = 'adhoc-command-action-response'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -160,7 +160,6 @@ class Blocking:
class BlockingEvent(NetworkIncomingEvent):
name = 'blocking'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -320,7 +320,6 @@ class Bookmarks:
class BookmarksReceivedEvent(NetworkIncomingEvent):
name = 'bookmarks-received'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -133,10 +133,6 @@ class EntityTime:
class TimeResultReceivedEvent(NetworkIncomingEvent):
name = 'time-result-received'
base_network_events = []
def generate(self):
return True
def get_instance(*args, **kwargs):

View File

@ -74,7 +74,6 @@ class HTTPAuth:
class HttpAuthReceivedEvent(NetworkIncomingEvent):
name = 'http-auth-received'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -421,7 +421,6 @@ class UploadAbortedException(Exception):
class HTTPUploadProgressEvent(NetworkIncomingEvent):
name = 'httpupload-progress'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -219,7 +219,6 @@ class AbstractPEPData:
class PEPReceivedEvent(NetworkIncomingEvent):
name = 'pep-received'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -109,17 +109,14 @@ class Ping:
class PingSentEvent(NetworkIncomingEvent):
name = 'ping-sent'
base_network_events = []
class PingReplyEvent(NetworkIncomingEvent):
name = 'ping-reply'
base_network_events = []
class PingErrorEvent(NetworkIncomingEvent):
name = 'ping-error'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -445,17 +445,14 @@ class PrivacyLists:
class PrivacyListsReceivedEvent(NetworkIncomingEvent):
name = 'privacy-lists-received'
base_network_events = []
class PrivacyListReceivedEvent(NetworkIncomingEvent):
name = 'privacy-list-received'
base_network_events = []
class PrivacyListRemovedEvent(NetworkIncomingEvent):
name = 'privacy-list-removed'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -263,7 +263,6 @@ class PubSub:
class PubSubConfigReceivedEvent(NetworkIncomingEvent):
name = 'pubsub-config-received'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -120,7 +120,6 @@ class RosterItemExchange:
class RosterItemExchangeEvent(NetworkIncomingEvent):
name = 'roster-item-exchange-received'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -106,12 +106,10 @@ class Search:
class SearchFormReceivedEvent(NetworkIncomingEvent):
name = 'search-form-received'
base_network_events = []
class SearchResultReceivedEvent(NetworkIncomingEvent):
name = 'search-result-received'
base_network_events = []
def get_instance(*args, **kwargs):

View File

@ -100,10 +100,6 @@ class SoftwareVersion:
class VersionResultReceivedEvent(NetworkIncomingEvent):
name = 'version-result-received'
base_network_events = []
def generate(self):
return True
def get_instance(*args, **kwargs):

View File

@ -310,17 +310,14 @@ class VCardTemp:
class VcardPublishedEvent(NetworkIncomingEvent):
name = 'vcard-published'
base_network_events = []
class VcardNotPublishedEvent(NetworkIncomingEvent):
name = 'vcard-not-published'
base_network_events = []
class VcardReceivedEvent(NetworkIncomingEvent):
name = 'vcard-received'
base_network_events = []
def get_instance(*args, **kwargs):