12301b2a5461 webpy-sucks

Remove unused functions from utils.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 03 Mar 2010 19:34:12 -0500
parents 85b4ae69ded2
children da5e042343da
branches/tags webpy-sucks
files review/web_ui.py

Changes

--- a/review/web_ui.py	Wed Mar 03 19:32:03 2010 -0500
+++ b/review/web_ui.py	Wed Mar 03 19:34:12 2010 -0500
@@ -33,18 +33,9 @@
 def _comment_gravatar(comment):
     return 'http://www.gravatar.com/avatar/%s/' % md5(email(comment.author)).hexdigest()
 
-def _skipped_comments(n, previous_n, line_level_comments):
-    return filter(lambda c: max(c.lines) in range(previous_n + 1, n), line_level_comments)
-
-def _skipped_comments_end(previous_n, max_line, line_level_comments):
-    return filter(lambda c: max(c.lines) in range(previous_n + 1, max_line), line_level_comments)
-
 def _line_type(line):
     return 'rem' if line[0] == '-' else 'add' if line[0] == '+' else 'con'
 
-def _line_comments(n, line_level_comments):
-    return filter(lambda c: max(c.lines) == n, line_level_comments)
-
 utils = {
     'node_short': short,
     'basename': os.path.basename,
@@ -53,10 +44,7 @@
     'templatefilters': templatefilters,
     'len': len,
     'comment_gravatar': _comment_gravatar,
-    'skipped_comments': _skipped_comments,
-    'skipped_comments_end': _skipped_comments_end,
     'line_type': _line_type,
-    'line_comments': _line_comments,
 }
 
 class ReviewWebUI(object):