From 52ed110a52259f30b57370c39bb4ce27b4bcec65 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 07 2016 10:22:24 +0000 Subject: Drop get_project_by_ci_token from pagure.lib_ci since it not used anywhere --- diff --git a/pagure/lib/lib_ci.py b/pagure/lib/lib_ci.py index db719e9..33ddd98 100644 --- a/pagure/lib/lib_ci.py +++ b/pagure/lib/lib_ci.py @@ -24,19 +24,6 @@ BUILD_STATS = { } -def get_project_by_ci_token(session, ci_token): - """ Return the project corresponding to the provided ci_token. """ - query = session.query( - model.Project - ).filter( - model.Project.id == pagure_ci.PagureCITable.project_id - ).filter( - pagure_ci.PagureCITable.pagure_ci_token == ci_token - ) - - return query.first() - - def process_jenkins_build(session, project, build_id, requestfolder): """ Gets the build info from jenkins and flags that particular pull-request.