Merge "Remove unused function _get_flavor_refs in flavor_access extension"

This commit is contained in:
Jenkins
2015-01-07 19:12:57 +00:00
committed by Gerrit Code Review
2 changed files with 0 additions and 18 deletions

View File

@@ -70,15 +70,6 @@ class FlavorActionController(wsgi.Controller):
if body is None or body == "":
raise webob.exc.HTTPBadRequest(explanation=_("No request body"))
def _get_flavor_refs(self, context):
"""Return a dictionary mapping flavorid to flavor_ref."""
flavors = objects.FlavorList.get_all(context)
rval = {}
for flavor in flavors:
rval[flavor.flavorid] = flavor
return rval
def _extend_flavor(self, flavor_rval, flavor_ref):
key = "%s:is_public" % (Flavor_access.alias)
flavor_rval[key] = flavor_ref['is_public']

View File

@@ -67,15 +67,6 @@ class FlavorAccessController(wsgi.Controller):
class FlavorActionController(wsgi.Controller):
"""The flavor access API controller for the OpenStack API."""
def _get_flavor_refs(self, context):
"""Return a dictionary mapping flavorid to flavor_ref."""
flavors = objects.FlavorList.get_all(context)
rval = {}
for flavor in flavors:
rval[flavor.flavorid] = flavor
return rval
def _extend_flavor(self, flavor_rval, flavor_ref):
key = "%s:is_public" % (FlavorAccess.alias)
flavor_rval[key] = flavor_ref['is_public']