mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-23 22:08:11 -05:00
Delete unused Link _saved and _hidden methods.
This commit is contained in:
@@ -172,22 +172,12 @@ class Link(Thing, Printable):
|
||||
admintools.spam(l, banner='banned user')
|
||||
return l
|
||||
|
||||
@classmethod
|
||||
def _saved(cls, user, link):
|
||||
saved = LinkSavesByAccount.fast_query(user, [link])
|
||||
return (user, link) in saved
|
||||
|
||||
def _save(self, user):
|
||||
LinkSavesByAccount._save(user, self)
|
||||
|
||||
def _unsave(self, user):
|
||||
LinkSavesByAccount._unsave(user, self)
|
||||
|
||||
@classmethod
|
||||
def _hidden(cls, user, link):
|
||||
hidden = LinkSavesByAccount.fast_query(user, [link])
|
||||
return (user, link) in hidden
|
||||
|
||||
def _hide(self, user):
|
||||
LinkHidesByAccount._hide(user, self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user