summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorthislooksfun <tlf@thislooks.fun>2021-10-26 21:53:49 -0500
committerAndreas Kling <kling@serenityos.org>2021-11-02 17:53:22 +0100
commitf7f9d09e7213b15d5f44346c8368f593e1394102 (patch)
treebd21f6b54fd40b5fa3532657d5b8bf2fe975c061 /Userland/Libraries/LibGUI
parentf699dbdc3f720b3c69083ba91e4214ea76fce6f8 (diff)
downloadserenity-f7f9d09e7213b15d5f44346c8368f593e1394102.zip
LibGUI: Remove GUI::AutocompleteProvider::Entry::kind
The only code using it was removed in the previous commit.
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/AutocompleteProvider.cpp4
-rw-r--r--Userland/Libraries/LibGUI/AutocompleteProvider.h8
2 files changed, 0 insertions, 12 deletions
diff --git a/Userland/Libraries/LibGUI/AutocompleteProvider.cpp b/Userland/Libraries/LibGUI/AutocompleteProvider.cpp
index 08b7538716..a6f73bde04 100644
--- a/Userland/Libraries/LibGUI/AutocompleteProvider.cpp
+++ b/Userland/Libraries/LibGUI/AutocompleteProvider.cpp
@@ -32,7 +32,6 @@ public:
enum InternalRole {
__ModelRoleCustom = (int)GUI::ModelRole::Custom,
PartialInputLength,
- Kind,
Completion,
};
@@ -65,9 +64,6 @@ public:
}
}
- if ((int)role == InternalRole::Kind)
- return (u32)suggestion.kind;
-
if ((int)role == InternalRole::PartialInputLength)
return (i64)suggestion.partial_input_length;
diff --git a/Userland/Libraries/LibGUI/AutocompleteProvider.h b/Userland/Libraries/LibGUI/AutocompleteProvider.h
index 109ec94060..832989b37e 100644
--- a/Userland/Libraries/LibGUI/AutocompleteProvider.h
+++ b/Userland/Libraries/LibGUI/AutocompleteProvider.h
@@ -20,13 +20,6 @@ class AutocompleteProvider {
public:
virtual ~AutocompleteProvider() { }
- enum class CompletionKind {
- Identifier,
- PreprocessorDefinition,
- SystemInclude,
- ProjectInclude,
- };
-
enum class Language {
Unspecified,
Cpp,
@@ -35,7 +28,6 @@ public:
struct Entry {
String completion;
size_t partial_input_length { 0 };
- CompletionKind kind { CompletionKind::Identifier };
Language language { Language::Unspecified };
String display_text {};
};