From b21cb0fa42b3699e3231d7d1e8f70c3dea364e2b Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 26 Jan 2011 07:15:16 +0100 Subject: [PATCH 1/1] Remove unused function get_binaries_from_source_id(). Signed-off-by: Torsten Werner --- daklib/dbconn.py | 20 -------------------- 1 file changed, 20 deletions(-) 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 -- 2.39.5