From e147e1e8a9c358d5aad7f23b650e01196128e0a2 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 3 Apr 2018 09:43:34 -0400 Subject: [PATCH] remove dead code This function moved to check.py. Change-Id: If5f80e709aa62208205108c4c0bc11dab4d267a0 Signed-off-by: Doug Hellmann --- playbooks/files/project-requirements-change.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/playbooks/files/project-requirements-change.py b/playbooks/files/project-requirements-change.py index 7f0953933d..7519ac70f8 100755 --- a/playbooks/files/project-requirements-change.py +++ b/playbooks/files/project-requirements-change.py @@ -88,20 +88,6 @@ def install_and_load_requirements(reqroot, reqdir): from openstack_requirements import requirement # noqa -def _is_requirement_in_global_reqs(req, global_reqs): - # Compare all fields except the extras field as the global - # requirements should not have any lines with the extras syntax - # example: oslo.db[xyz]<1.2.3 - for req2 in global_reqs: - if (req.package == req2.package and - req.location == req2.location and - req.specifiers == req2.specifiers and - req.markers == req2.markers and - req.comment == req2.comment): - return True - return False - - def main(): args = grab_args() branch = args.branch