Remove now-unused portion of newwindow user pref

This commit is contained in:
umbrae
2014-03-06 11:58:09 -05:00
parent 2716575624
commit b0ce0c940c
2 changed files with 0 additions and 4 deletions

View File

@@ -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,

View File

@@ -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)