]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Remove unused methods from LVM driver
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Fri, 23 Aug 2013 05:40:04 +0000 (14:40 +0900)
committerKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Fri, 23 Aug 2013 11:24:04 +0000 (20:24 +0900)
_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

cinder/brick/local_dev/lvm.py

index dbd5d474cac1c1967d0a832c9cf3170e73010ed9..5f40500296192bdcd32319124845ff6714edac34 100644 (file)
@@ -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.