]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Cleanup unused method fake_get_target
authorKenji Yasui <k-yasui@ti.jp.nec.com>
Fri, 10 Jul 2015 05:02:23 +0000 (05:02 +0000)
committerKenji Yasui <k-yasui@ti.jp.nec.com>
Mon, 13 Jul 2015 00:32:17 +0000 (00:32 +0000)
This method has not been used since the change
I43190d1dac33748fe55fa00f260f32ab209be656
which removes the callers of fake_get_target()

Closes-Bug: #1473338
Change-Id: Ib94d9d3a5d3fd99885ab18cd2efc0730720e8c3f

cinder/tests/unit/test_volume.py

index 24520ab268966c529433b74e601d73a59944c979..f890af30e90f16b04fb083ff9bec85df2ccd1470 100644 (file)
@@ -142,9 +142,6 @@ class BaseVolumeTestCase(test.TestCase):
         except OSError:
             pass
 
-    def fake_get_target(obj, iqn):
-        return 1
-
     def fake_get_all_volume_groups(obj, vg_name=None, no_suffix=True):
         return [{'name': 'cinder-volumes',
                  'size': '5.00',
@@ -5473,9 +5470,6 @@ class DriverTestCase(test.TestCase):
         except OSError:
             pass
 
-    def fake_get_target(obj, iqn):
-        return 1
-
     def _attach_volume(self):
         """Attach volumes to an instance."""
         return []