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): class AdHocCommandError(NetworkIncomingEvent):
name = 'adhoc-command-error' name = 'adhoc-command-error'
base_network_events = []
class AdHocCommandListReceived(NetworkIncomingEvent): class AdHocCommandListReceived(NetworkIncomingEvent):
name = 'adhoc-command-list' name = 'adhoc-command-list'
base_network_events = []
class AdHocCommandActionResponse(NetworkIncomingEvent): class AdHocCommandActionResponse(NetworkIncomingEvent):
name = 'adhoc-command-action-response' name = 'adhoc-command-action-response'
base_network_events = []
def get_instance(*args, **kwargs): def get_instance(*args, **kwargs):

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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