mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Remove now-unused portion of newwindow user pref
This commit is contained in:
@@ -119,7 +119,6 @@ class LinkButtons(PrintableButtons):
|
||||
PrintableButtons.__init__(self, 'linkbuttons', thing,
|
||||
# user existence and preferences
|
||||
is_loggedin = c.user_is_loggedin,
|
||||
new_window = c.user.pref_newwindow,
|
||||
# comment link params
|
||||
comment_label = thing.comment_label,
|
||||
commentcls = thing.commentcls,
|
||||
@@ -166,7 +165,6 @@ class CommentButtons(PrintableButtons):
|
||||
permalink = thing.permalink,
|
||||
saved = thing.saved,
|
||||
ignore_reports = thing.ignore_reports,
|
||||
new_window = c.user.pref_newwindow,
|
||||
full_comment_path = thing.full_comment_path,
|
||||
full_comment_count = thing.full_comment_count,
|
||||
deleted = thing.deleted,
|
||||
|
||||
@@ -355,7 +355,6 @@ class Link(Thing, Printable):
|
||||
user_is_loggedin = c.user_is_loggedin
|
||||
pref_media = user.pref_media
|
||||
pref_frame = user.pref_frame
|
||||
pref_newwindow = user.pref_newwindow
|
||||
cname = c.cname
|
||||
site = c.site
|
||||
now = datetime.now(g.tz)
|
||||
@@ -534,7 +533,6 @@ class Link(Thing, Printable):
|
||||
|
||||
# store user preferences locally for caching
|
||||
item.pref_frame = pref_frame
|
||||
item.newwindow = pref_newwindow
|
||||
# is this link a member of a different (non-c.site) subreddit?
|
||||
item.different_sr = (isinstance(site, FakeSubreddit) or
|
||||
site.name != item.subreddit.name)
|
||||
|
||||
Reference in New Issue
Block a user