From 67394b02417802842021fdef95f68edbf723eb71 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 24 Nov 2018 10:14:46 +0100 Subject: [PATCH] Remove is_in_projects_txt This function is nowhere used as confirmed by codesearch: http://codesearch.openstack.org/?q=is_in_projects_txt&i=nope&files=&repos= We can remove the function. Note that usage of this function was removed in change I843208e2e982eb04931b76f5cb4bd219fbcd70de in 2015. This came up in context of https://review.openstack.org/619089 where requirements/projects.txt is getting removed. Change-Id: I487d3f9e340bd45e83245b9ca91e8e3b5ac3ae02 --- inc/python | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/inc/python b/inc/python index d8b8169fa1..5fb7245623 100644 --- a/inc/python +++ b/inc/python @@ -490,17 +490,6 @@ function setup_develop { _setup_package_with_constraints_edit $project_dir -e $extras } -# determine if a project as specified by directory is in -# projects.txt. This will not be an exact match because we throw away -# the namespacing when we clone, but it should be good enough in all -# practical ways. -function is_in_projects_txt { - local project_dir=$1 - local project_name - project_name=$(basename $project_dir) - grep -q "/$project_name\$" $REQUIREMENTS_DIR/projects.txt -} - # ``pip install -e`` the package, which processes the dependencies # using pip before running `setup.py develop` #