Skip to content

Commit

Permalink
Remove StreamListener.on_direct_message and StreamListener.on_friends
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Dec 28, 2020
1 parent 96f7e63 commit ab2479b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tweepy/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ def on_data(self, raw_data):
status = Status.parse(self.api, data)
if self.on_event(status) is False:
return False
elif 'direct_message' in data:
status = Status.parse(self.api, data)
if self.on_direct_message(status) is False:
return False
elif 'friends' in data:
if self.on_friends(data['friends']) is False:
return False
elif 'limit' in data:
if self.on_limit(data['limit']['track']) is False:
return False
Expand Down Expand Up @@ -106,17 +99,6 @@ def on_event(self, status):
"""Called when a new event arrives"""
return

def on_direct_message(self, status):
"""Called when a new direct message arrives"""
return

def on_friends(self, friends):
"""Called when a friends list arrives.
friends is a list that contains user_id
"""
return

def on_limit(self, track):
"""Called when a limitation notice arrives"""
return
Expand Down

0 comments on commit ab2479b

Please sign in to comment.