mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03:00
LibSyntax: Remove minor unnecessary use of LibGUI
This was the only stuff that made it look like LibSyntax depends on LibGUI, when it really doesn't.
This commit is contained in:
parent
295c4ef51a
commit
3e46874858
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3e46874858 Pull-request: https://github.com/SerenityOS/serenity/pull/24527
@ -4,7 +4,6 @@
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibGUI/TextEditor.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibSyntax/Highlighter.h>
|
||||
|
||||
@ -75,7 +74,7 @@ void Highlighter::highlight_matching_token_pair()
|
||||
auto pairs = matching_token_pairs();
|
||||
|
||||
for (size_t i = 0; i < document.spans().size(); ++i) {
|
||||
auto& span = const_cast<GUI::TextDocumentSpan&>(document.spans().at(i));
|
||||
auto& span = const_cast<TextDocumentSpan&>(document.spans().at(i));
|
||||
auto token_type = span.data;
|
||||
|
||||
for (auto& pair : pairs) {
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
#include "Language.h"
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <LibGUI/TextEditor.h>
|
||||
#include <LibSyntax/Highlighter.h>
|
||||
|
||||
namespace Syntax {
|
||||
|
Loading…
Reference in New Issue
Block a user