Remove unnecessary code
NetworkIncomingEvent defines base_network_events and generate() already
This commit is contained in:
parent
d18f9b0716
commit
df9651f33b
|
@ -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):
|
||||
|
|
|
@ -160,7 +160,6 @@ class Blocking:
|
|||
|
||||
class BlockingEvent(NetworkIncomingEvent):
|
||||
name = 'blocking'
|
||||
base_network_events = []
|
||||
|
||||
|
||||
def get_instance(*args, **kwargs):
|
||||
|
|
|
@ -320,7 +320,6 @@ class Bookmarks:
|
|||
|
||||
class BookmarksReceivedEvent(NetworkIncomingEvent):
|
||||
name = 'bookmarks-received'
|
||||
base_network_events = []
|
||||
|
||||
|
||||
def get_instance(*args, **kwargs):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -74,7 +74,6 @@ class HTTPAuth:
|
|||
|
||||
class HttpAuthReceivedEvent(NetworkIncomingEvent):
|
||||
name = 'http-auth-received'
|
||||
base_network_events = []
|
||||
|
||||
|
||||
def get_instance(*args, **kwargs):
|
||||
|
|
|
@ -421,7 +421,6 @@ class UploadAbortedException(Exception):
|
|||
|
||||
class HTTPUploadProgressEvent(NetworkIncomingEvent):
|
||||
name = 'httpupload-progress'
|
||||
base_network_events = []
|
||||
|
||||
|
||||
def get_instance(*args, **kwargs):
|
||||
|
|
|
@ -219,7 +219,6 @@ class AbstractPEPData:
|
|||
|
||||
class PEPReceivedEvent(NetworkIncomingEvent):
|
||||
name = 'pep-received'
|
||||
base_network_events = []
|
||||
|
||||
|
||||
def get_instance(*args, **kwargs):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -263,7 +263,6 @@ class PubSub:
|
|||
|
||||
class PubSubConfigReceivedEvent(NetworkIncomingEvent):
|
||||
name = 'pubsub-config-received'
|
||||
base_network_events = []
|
||||
|
||||
|
||||
def get_instance(*args, **kwargs):
|
||||
|
|
|
@ -120,7 +120,6 @@ class RosterItemExchange:
|
|||
|
||||
class RosterItemExchangeEvent(NetworkIncomingEvent):
|
||||
name = 'roster-item-exchange-received'
|
||||
base_network_events = []
|
||||
|
||||
|
||||
def get_instance(*args, **kwargs):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue