mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
1bab588f4e
commit
1d0fbc64c8
@@ -142,15 +142,6 @@ class _FilemapBase(object):
|
||||
|
||||
raise Error("the method is not implemented")
|
||||
|
||||
def block_is_unmapped(self, block): # pylint: disable=W0613,R0201
|
||||
"""
|
||||
This method has has to be implemented by child classes. It returns
|
||||
'True' if block number 'block' of the image file is not mapped (hole)
|
||||
and 'False' otherwise.
|
||||
"""
|
||||
|
||||
raise Error("the method is not implemented")
|
||||
|
||||
def get_mapped_ranges(self, start, count): # pylint: disable=W0613,R0201
|
||||
"""
|
||||
This method has has to be implemented by child classes. This is a
|
||||
@@ -265,10 +256,6 @@ class FilemapSeek(_FilemapBase):
|
||||
% (block, result))
|
||||
return result
|
||||
|
||||
def block_is_unmapped(self, block):
|
||||
"""Refer the '_FilemapBase' class for the documentation."""
|
||||
return not self.block_is_mapped(block)
|
||||
|
||||
def _get_ranges(self, start, count, whence1, whence2):
|
||||
"""
|
||||
This function implements 'get_mapped_ranges()' and
|
||||
@@ -422,10 +409,6 @@ class FilemapFiemap(_FilemapBase):
|
||||
% (block, result))
|
||||
return result
|
||||
|
||||
def block_is_unmapped(self, block):
|
||||
"""Refer the '_FilemapBase' class for the documentation."""
|
||||
return not self.block_is_mapped(block)
|
||||
|
||||
def _unpack_fiemap_extent(self, index):
|
||||
"""
|
||||
Unpack a 'struct fiemap_extent' structure object number 'index' from
|
||||
|
||||
Reference in New Issue
Block a user