mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:07:34 +00:00
LibGUI: Remove GUI::AutocompleteProvider::Entry::kind
The only code using it was removed in the previous commit.
This commit is contained in:
parent
f699dbdc3f
commit
f7f9d09e72
4 changed files with 11 additions and 23 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 {};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue