summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hao <kexin.hao@windriver.com>2020-07-14 08:53:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-31 22:02:52 +0100
commit1d0fbc64c85a99151acc2fe3bfe9d42d1232dc4a (patch)
treed5f2cb3997b8404b1b4932a8bd826f96cefca668
parent1bab588f4e0891032d57790661133ee153fa5f01 (diff)
downloadpoky-1d0fbc64c85a99151acc2fe3bfe9d42d1232dc4a.tar.gz
wic/filemap: Drop the unused block_is_unmapped()
This method is not used by any code, so drop it. (From OE-Core rev: 14cbfc04f4a9da5baba6267daefd54a12a04d56e) Signed-off-by: Kevin Hao <kexin.hao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit fb62a15349597ee026c67a0bb0a6ca2cc9bfe420) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/lib/wic/filemap.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/scripts/lib/wic/filemap.py b/scripts/lib/wic/filemap.py
index c53147c2f1..8cfed5afa8 100644
--- a/scripts/lib/wic/filemap.py
+++ b/scripts/lib/wic/filemap.py
@@ -142,15 +142,6 @@ class _FilemapBase(object):
142 142
143 raise Error("the method is not implemented") 143 raise Error("the method is not implemented")
144 144
145 def block_is_unmapped(self, block): # pylint: disable=W0613,R0201
146 """
147 This method has has to be implemented by child classes. It returns
148 'True' if block number 'block' of the image file is not mapped (hole)
149 and 'False' otherwise.
150 """
151
152 raise Error("the method is not implemented")
153
154 def get_mapped_ranges(self, start, count): # pylint: disable=W0613,R0201 145 def get_mapped_ranges(self, start, count): # pylint: disable=W0613,R0201
155 """ 146 """
156 This method has has to be implemented by child classes. This is a 147 This method has has to be implemented by child classes. This is a
@@ -265,10 +256,6 @@ class FilemapSeek(_FilemapBase):
265 % (block, result)) 256 % (block, result))
266 return result 257 return result
267 258
268 def block_is_unmapped(self, block):
269 """Refer the '_FilemapBase' class for the documentation."""
270 return not self.block_is_mapped(block)
271
272 def _get_ranges(self, start, count, whence1, whence2): 259 def _get_ranges(self, start, count, whence1, whence2):
273 """ 260 """
274 This function implements 'get_mapped_ranges()' and 261 This function implements 'get_mapped_ranges()' and
@@ -422,10 +409,6 @@ class FilemapFiemap(_FilemapBase):
422 % (block, result)) 409 % (block, result))
423 return result 410 return result
424 411
425 def block_is_unmapped(self, block):
426 """Refer the '_FilemapBase' class for the documentation."""
427 return not self.block_is_mapped(block)
428
429 def _unpack_fiemap_extent(self, index): 412 def _unpack_fiemap_extent(self, index):
430 """ 413 """
431 Unpack a 'struct fiemap_extent' structure object number 'index' from 414 Unpack a 'struct fiemap_extent' structure object number 'index' from