summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoden R <bodenvmw@gmail.com>2018-05-30 15:21:30 -0600
committerBoden R <bodenvmw@gmail.com>2018-06-12 08:04:57 -0600
commite65767034e88534cc8e79da38530400f32841194 (patch)
treec80f8d114a3c8653a2f3521347512a165cd7dd70
parent100491cec72ecf694cc8cbd6cd17b66a191a5bd7 (diff)
remove model_query_scope from common db mixin
The model_query_scope method is not used from common db mixin [1]. This patch removes it on the path to eventually removing common db mixin all together. NeutronLibImpact [1] http://codesearch.openstack.org/?q=%5C.model_query_scope%5C( Change-Id: Ib8ce6e9f6000e9c01d28c1471b885b0f3c8a041b
Notes
Notes (review): Code-Review+1: Manjeet Singh Bhatia <manjeet.s.bhatia@intel.com> Code-Review+1: yanpuqing <yanpq@awcloud.com> Code-Review+2: Slawek Kaplonski <skaplons@redhat.com> Code-Review+2: Miguel Lavalle <miguel.lavalle@huawei.com> Code-Review+1: Bernard Cafarelli <bcafarel@redhat.com> Workflow+1: Slawek Kaplonski <skaplons@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 12 Jun 2018 21:27:51 +0000 Reviewed-on: https://review.openstack.org/571315 Project: openstack/neutron Branch: refs/heads/master
-rw-r--r--neutron/db/common_db_mixin.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/neutron/db/common_db_mixin.py b/neutron/db/common_db_mixin.py
index 425361f..c1c652e 100644
--- a/neutron/db/common_db_mixin.py
+++ b/neutron/db/common_db_mixin.py
@@ -34,10 +34,6 @@ class CommonDbMixin(object):
34 _resource_extend.register_funcs(resource, funcs) 34 _resource_extend.register_funcs(resource, funcs)
35 35
36 @staticmethod 36 @staticmethod
37 def model_query_scope(context, model):
38 return ndb_utils.model_query_scope_is_project(context, model)
39
40 @staticmethod
41 def _model_query(context, model): 37 def _model_query(context, model):
42 return _model_query.query_with_hooks(context, model) 38 return _model_query.query_with_hooks(context, model)
43 39