From 12f00794cc878c9c9834f6eda9e46213ffb37dcf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 27 2015 13:03:24 +0000 Subject: Drop un-used method --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index a1bb6a7..c482c2f 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -1910,23 +1910,6 @@ def add_group(session, group_name, group_type, user, is_admin): session, user.username, grp, user.username, is_admin) -def get_group(session, group): - ''' Return a specific group for the specified group name. - - :arg session: the session with which to connect to the database. - - ''' - query = session.query( - model.PagureGroup - ).filter( - model.PagureGroup.group_name == group - ).order_by( - model.PagureGroup.group_name - ) - - return query.first() - - def get_user_group(session, userid, groupid): ''' Return a specific user_group for the specified group and user identifiers.