Remove method get_security_group_rules_count

This method was defined in SecurityGroupDbMixin class but it seems that
it isn't used anywhere around Neutron and stadium projects.
So we can simply remove it.

Change-Id: I5df04d471af7f895dcf55e3233615b89acacbc6f
This commit is contained in:
Slawek Kaplonski 2020-02-20 09:24:52 +01:00
parent f1ca212ea5
commit dfd394805d
1 changed files with 0 additions and 6 deletions

View File

@ -732,12 +732,6 @@ class SecurityGroupDbMixin(ext_sg.SecurityGroupPluginBase,
for obj in rule_objs
]
@db_api.retry_if_session_inactive()
def get_security_group_rules_count(self, context, filters=None):
filters = filters or {}
return sg_obj.SecurityGroupRule.count(
context, validate_filters=False, **filters)
@db_api.retry_if_session_inactive()
def get_security_group_rule(self, context, id, fields=None):
# NOTE(slaweq): use admin context here to be able to get all rules