mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
WindowServer: Remove unused Menu->MenuBar link and "title font"
We kept a backpointer from the Menu to its containing MenuBar, but it was not used for anything so let's remove it. Since all menus have the same font now, there's no need to track a separate "title font".
This commit is contained in:
parent
dfb81242f3
commit
6203a4a2e9
3 changed files with 2 additions and 29 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2020, Shannon Booth <shannon.ml.booth@gmail.com>
|
||||
* All rights reserved.
|
||||
*
|
||||
|
@ -55,16 +55,6 @@ Menu::~Menu()
|
|||
{
|
||||
}
|
||||
|
||||
void Menu::set_title_font(const Gfx::Font& font)
|
||||
{
|
||||
m_title_font = &font;
|
||||
}
|
||||
|
||||
const Gfx::Font& Menu::title_font() const
|
||||
{
|
||||
return *m_title_font;
|
||||
}
|
||||
|
||||
const Gfx::Font& Menu::font() const
|
||||
{
|
||||
return Gfx::FontDatabase::default_font();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue