From: Torsten Werner Date: Wed, 26 Jan 2011 06:15:16 +0000 (+0100) Subject: Remove unused function get_binaries_from_source_id(). X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b21cb0fa42b3699e3231d7d1e8f70c3dea364e2b;p=dak Remove unused function get_binaries_from_source_id(). Signed-off-by: Torsten Werner --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 94ab0d62..c7c91b7d 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -482,26 +482,6 @@ def get_suites_binary_in(package, session=None): __all__.append('get_suites_binary_in') -@session_wrapper -def get_binaries_from_source_id(source_id, session=None): - """ - Returns list of DBBinary objects for given C{source_id} - - @type source_id: int - @param source_id: source_id to search for - - @type session: Session - @param session: Optional SQL session object (a temporary one will be - generated if not supplied) - - @rtype: list - @return: list of DBBinary objects for the given name (may be empty) - """ - - return session.query(DBBinary).filter_by(source_id=source_id).all() - -__all__.append('get_binaries_from_source_id') - @session_wrapper def get_binary_from_name_suite(package, suitename, session=None): ### For dak examine-package