Changeset - 48f8c73a94f2
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 9 years ago 2016-10-08 20:22:26
thomas.de.schampheleire@gmail.com
helpers: remove unused wrapper method is_following_repo

kallithea.lib.helpers is a plain wrapper around ScmModel.is_following_repo
and is used nowhere.
1 file changed with 0 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/helpers.py
Show inline comments
 
@@ -353,28 +353,24 @@ def pygmentize_annotation(repo_name, fil
 
                    style=get_color_string(changeset.raw_id),
 
                    class_='tooltip safe-html-title',
 
                    title=tooltip_html
 
                  )
 

	
 
            uri += '\n'
 
            return uri
 
        return _url_func
 

	
 
    return literal(markup_whitespace(annotate_highlight(filenode, url_func(repo_name), **kwargs)))
 

	
 

	
 
def is_following_repo(repo_name, user_id):
 
    from kallithea.model.scm import ScmModel
 
    return ScmModel().is_following_repo(repo_name, user_id)
 

	
 
class _Message(object):
 
    """A message returned by ``Flash.pop_messages()``.
 

	
 
    Converting the message to a string returns the message text. Instances
 
    also have the following attributes:
 

	
 
    * ``message``: the message text.
 
    * ``category``: the category specified when the message was created.
 
    """
 

	
 
    def __init__(self, category, message):
 
        self.category = category
0 comments (0 inline, 0 general)