]> git.decadent.org.uk Git - dak.git/commitdiff
Remove unused function get_binaries_from_source_id().
authorTorsten Werner <twerner@debian.org>
Wed, 26 Jan 2011 06:15:16 +0000 (07:15 +0100)
committerTorsten Werner <twerner@debian.org>
Wed, 26 Jan 2011 06:15:16 +0000 (07:15 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index 94ab0d62f8e41750214a5c94e3bd59cd8846e413..c7c91b7d0e3cb4817a2035355958b53b7a20d767 100755 (executable)
@@ -482,26 +482,6 @@ def get_suites_binary_in(package, session=None):
 
 __all__.append('get_suites_binary_in')
 
 
 __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
 @session_wrapper
 def get_binary_from_name_suite(package, suitename, session=None):
     ### For dak examine-package