From: Ken'ichi Ohmichi Date: Fri, 23 Aug 2013 05:40:04 +0000 (+0900) Subject: Remove unused methods from LVM driver X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=53cf8caccd36bfcf8874776c02086d2da1ca6c76;p=openstack-build%2Fcinder-build.git Remove unused methods from LVM driver _set_execute() has been unused since b569df9, and _size_str() has been done since f4a9429. So this patch removes them for clean-up. Change-Id: If8a2703afb08623b69ec6adc105cf58b0e4a15dc --- diff --git a/cinder/brick/local_dev/lvm.py b/cinder/brick/local_dev/lvm.py index dbd5d474c..5f4050029 100644 --- a/cinder/brick/local_dev/lvm.py +++ b/cinder/brick/local_dev/lvm.py @@ -88,18 +88,6 @@ class LVM(executor.Executor): else: self.vg_thin_pool = pool_name - def _set_execute(self, execute): - self._execute = execute - - def _size_str(self, size_in_g): - if '.00' in size_in_g: - size_in_g = size_in_g.replace('.00', '') - - if int(size_in_g) == 0: - return '100m' - - return '%sg' % size_in_g - def _vg_exists(self): """Simple check to see if VG exists.