mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 04:09:00 +00:00
LibGfx: Remove the unused Bitmap::set_mmap_name()
This commit is contained in:
parent
17fc995ee4
commit
0967bdad02
Notes:
sideshowbarker
2024-07-16 20:08:14 +09:00
Author: https://github.com/awesomekling
Commit: 0967bdad02
Pull-request: https://github.com/SerenityOS/serenity/pull/24153
2 changed files with 0 additions and 10 deletions
|
@ -565,14 +565,6 @@ void Bitmap::strip_alpha_channel()
|
|||
m_format = BitmapFormat::BGRx8888;
|
||||
}
|
||||
|
||||
void Bitmap::set_mmap_name([[maybe_unused]] ByteString const& name)
|
||||
{
|
||||
VERIFY(m_needs_munmap);
|
||||
#ifdef AK_OS_SERENITY
|
||||
::set_mmap_name(m_data, size_in_bytes(), name.characters());
|
||||
#endif
|
||||
}
|
||||
|
||||
void Bitmap::fill(Color color)
|
||||
{
|
||||
for (int y = 0; y < physical_height(); ++y) {
|
||||
|
|
|
@ -204,8 +204,6 @@ public:
|
|||
// Call only for BGRx8888 and BGRA8888 bitmaps.
|
||||
void strip_alpha_channel();
|
||||
|
||||
void set_mmap_name(ByteString const&);
|
||||
|
||||
[[nodiscard]] static constexpr size_t size_in_bytes(size_t pitch, int physical_height) { return pitch * physical_height; }
|
||||
[[nodiscard]] size_t size_in_bytes() const { return size_in_bytes(m_pitch, physical_height()); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue