mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
HackStudio+LibGUI: Remove TextDocument::is_code_document()
The same thing can be accomplished with `is` and `verify_cast`, without making LibGUI care about HackStudio internals.
This commit is contained in:
parent
63d14a7e6e
commit
d832f3a887
Notes:
sideshowbarker
2024-07-17 11:30:54 +09:00
Author: https://github.com/AtkinsSJ
Commit: d832f3a887
Pull-request: https://github.com/SerenityOS/serenity/pull/20105
Reviewed-by: https://github.com/linusg
3 changed files with 2 additions and 8 deletions
|
@ -29,8 +29,6 @@ public:
|
|||
DeprecatedString const& file_path() const { return m_file_path; }
|
||||
Optional<Syntax::Language> const& language() const { return m_language; }
|
||||
|
||||
virtual bool is_code_document() const override final { return true; }
|
||||
|
||||
enum class DiffType {
|
||||
None,
|
||||
AddedLine,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue