[blivet:master 10/11] Remove unused get_size method (#1085474)
mulhern
amulhern at redhat.com
Fri Apr 11 15:23:11 UTC 2014
Resolves: fed#1085474
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devicelibs/mdraid.py | 2 --
blivet/devicelibs/raid.py | 16 ----------------
2 files changed, 18 deletions(-)
diff --git a/blivet/devicelibs/mdraid.py b/blivet/devicelibs/mdraid.py
index 1445167..fa5a5c9 100644
--- a/blivet/devicelibs/mdraid.py
+++ b/blivet/devicelibs/mdraid.py
@@ -53,8 +53,6 @@ class Container(object):
min_members = 1
def get_recommended_stride(self, member_devices):
return None
- def get_size(self, member_count, smallest_member_size, chunk_size):
- raise MDRaidError("get_size is not defined for level container.")
def get_raw_array_size(self, member_count, smallest_member_size):
raise MDRaidError("get_raw_array_size is not defined for level container.")
def size(self, member_sizes, num_members=None, chunk_size=None, superblock_size_func=None):
diff --git a/blivet/devicelibs/raid.py b/blivet/devicelibs/raid.py
index 36453cd..50c0625 100644
--- a/blivet/devicelibs/raid.py
+++ b/blivet/devicelibs/raid.py
@@ -161,22 +161,6 @@ class RAIDLevel(object):
"""Helper function; not to be called directly."""
raise NotImplementedError()
- def get_size(self, member_count, smallest_member_size, chunk_size):
- """
- Calculates the number of bits available on the this array modulo
- the chunk size based on the smallest member size.
-
- :param int member_count: the number of members in the array
- :param smallest_member_size: the size of the smallest
- member of this array
- :type smallest_member_size: :class:`~.size.Size`
- :param chunk_size: the smallest unit of size this array allows
- :type chunk_size: :class:`~.size.Size`
- :rtype: :class:`~.size.Size`
- """
- size = self.get_net_array_size(member_count, smallest_member_size)
- return self._trim(size, chunk_size)
-
@abc.abstractmethod
def _trim(self, size, chunk_size):
"""Helper function; not to be called directly.
--
1.8.3.1
More information about the anaconda-patches
mailing list