1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:57:45 +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:
Sam Atkins 2023-07-19 19:56:59 +01:00 committed by Sam Atkins
parent 63d14a7e6e
commit d832f3a887
3 changed files with 2 additions and 8 deletions

View file

@ -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,