]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused db api
authorRongze Zhu <zrzhit@gmail.com>
Fri, 7 Sep 2012 06:40:45 +0000 (14:40 +0800)
committerRongze Zhu <zrzhit@gmail.com>
Fri, 7 Sep 2012 06:40:45 +0000 (14:40 +0800)
service_get_all_compute_by_host and service_get_all_compute_sorted are
not be used by cinder.

Change-Id: Ie384d2666bbfea1d5fab74e4e3e021909f6c0e3f

cinder/db/api.py

index 96bdad03b6a7461f05a9d5d305d1720a195b7238..093d7fd47dd93a5ca0673abf00e62081314f4a03 100644 (file)
@@ -109,20 +109,6 @@ def service_get_all_by_host(context, host):
     return IMPL.service_get_all_by_host(context, host)
 
 
-def service_get_all_compute_by_host(context, host):
-    """Get all compute services for a given host."""
-    return IMPL.service_get_all_compute_by_host(context, host)
-
-
-def service_get_all_compute_sorted(context):
-    """Get all compute services sorted by instance count.
-
-    :returns: a list of (Service, instance_count) tuples.
-
-    """
-    return IMPL.service_get_all_compute_sorted(context)
-
-
 def service_get_all_volume_sorted(context):
     """Get all volume services sorted by volume count.