From: RongzeZhu Date: Fri, 17 Aug 2012 02:07:05 +0000 (+0800) Subject: Remove unused function X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b192cfebb85b4cb6b5f35df3c21ecfa15fc0aa49;p=openstack-build%2Fcinder-build.git Remove unused function 'wait_creation' function in cinder.volume.api.API is unused. Change-Id: I4062e026b3e227513321be18ee920a4e5882cbd7 --- diff --git a/cinder/volume/api.py b/cinder/volume/api.py index d97d4886d..79132a63b 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -180,15 +180,6 @@ class API(base.Base): "volume_id": volume_id, "snapshot_id": snapshot_id}}) - # TODO(yamahata): eliminate dumb polling - def wait_creation(self, context, volume): - volume_id = volume['id'] - while True: - volume = self.get(context, volume_id) - if volume['status'] != 'creating': - return - greenthread.sleep(1) - @wrap_check_policy def delete(self, context, volume): volume_id = volume['id']