Skip to content

Commit

Permalink
Remove unused text_with_js util.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Nov 11, 2011
1 parent 0875524 commit 09a3fda
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion r2/r2/templates/redditheader.compact
Expand Up @@ -24,7 +24,7 @@
from r2.models.subreddit import DefaultSR

%>
<%namespace file="utils.html" import="plain_link, text_with_js, img_link, separator, logout"/>
<%namespace file="utils.html" import="plain_link, img_link, separator, logout"/>

<%
from r2.lib.menus import PageNameNav
Expand Down
2 changes: 1 addition & 1 deletion r2/r2/templates/redditheader.mobile
Expand Up @@ -24,7 +24,7 @@
from r2.lib.template_helpers import static
from r2.models import Sub, FakeSubreddit
%>
<%namespace file="utils.html" import="plain_link, text_with_js, img_link, separator"/>
<%namespace file="utils.html" import="plain_link, img_link, separator"/>

<div id="header">
<a href="/.mobile"><img id="header-img" src="${static('littlehead.png')}" alt="${c.site.name}" /></a><a href="/reddits.mobile" class="or">other reddits</a>
Expand Down
13 changes: 0 additions & 13 deletions r2/r2/templates/utils.html
Expand Up @@ -182,19 +182,6 @@
${unsafe(txt)}
</%def>

<%def name="text_with_js(txt, _sr_path = False, **kw)">
<%
for key, (text, js) in kw.iteritems():
kw[key]=spaceCompress(capture(plain_link, text, "#",
onclick = js, _sr_path=_sr_path))
txt = txt % kw
txt = txt.replace(" <", "&#32;<").replace("> ", ">&#32;")

%>
${unsafe(txt)}
</%def>


<%def name="language_tool(name='lang', allow_blank = False,
default_lang = g.lang,
show_regions = False,
Expand Down

0 comments on commit 09a3fda

Please sign in to comment.