From 1ac081150f93f46129ebfb45a95196c4c165aadd Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Sun, 7 Apr 2013 22:39:02 -0700 Subject: [PATCH] Remove unused mappings and inline scripts. --- r2/r2/lib/template_helpers.py | 2 -- r2/r2/templates/link.html | 3 --- 2 files changed, 5 deletions(-) diff --git a/r2/r2/lib/template_helpers.py b/r2/r2/lib/template_helpers.py index e4070f2b3..7e383880e 100755 --- a/r2/r2/lib/template_helpers.py +++ b/r2/r2/lib/template_helpers.py @@ -137,8 +137,6 @@ def js_config(extra_config=None): "https_endpoint": is_subdomain(request.host, g.domain) and g.https_endpoint, # debugging? "debug": g.debug, - "vl": {}, - "sr": {}, "status_msg": { "fetching": _("fetching title..."), "submitting": _("submitting..."), diff --git a/r2/r2/templates/link.html b/r2/r2/templates/link.html index b56d04b59..05da43d24 100755 --- a/r2/r2/templates/link.html +++ b/r2/r2/templates/link.html @@ -177,9 +177,6 @@ ${parent.thing_data_attributes(what)} data-ups="${what.upvotes}" data-downs="${w ${plain_link(thing.subreddit.name, thing.subreddit_path, sr_path = False, cname = False, _class = "subreddit hover", target='_blank' if thing.newwindow else '')} - <%def name="midcol(display=True, cls = '')">