From: Rongze Zhu Date: Fri, 7 Sep 2012 06:40:45 +0000 (+0800) Subject: Remove unused db api X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=aba4dcbf9d8bcb2cc65109960e1e53169db8ff69;p=openstack-build%2Fcinder-build.git Remove unused db api service_get_all_compute_by_host and service_get_all_compute_sorted are not be used by cinder. Change-Id: Ie384d2666bbfea1d5fab74e4e3e021909f6c0e3f --- diff --git a/cinder/db/api.py b/cinder/db/api.py index 96bdad03b..093d7fd47 100644 --- a/cinder/db/api.py +++ b/cinder/db/api.py @@ -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.