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:
Andreas Kling 2024-06-02 19:45:47 +02:00
parent 295c4ef51a
commit 3e46874858
Notes: sideshowbarker 2024-07-17 07:09:53 +09:00
2 changed files with 1 additions and 3 deletions

View File

@ -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) {

View File

@ -6,7 +6,6 @@
#include "Language.h"
#include <AK/LexicalPath.h>
#include <LibGUI/TextEditor.h>
#include <LibSyntax/Highlighter.h>
namespace Syntax {