mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibLine+Shell: Remove unused split_mechanism
It was only read in should_break_token(), which had no callers. should_break_token() also got `foo\\ bar` and `"foo bar"` wrong.
This commit is contained in:
parent
7f7dd3cf9c
commit
3cc9e8ba41
3 changed files with 2 additions and 23 deletions
|
@ -52,10 +52,6 @@
|
|||
namespace Line {
|
||||
|
||||
struct Configuration {
|
||||
enum TokenSplitMechanism {
|
||||
Spaces,
|
||||
UnescapedSpaces,
|
||||
};
|
||||
enum RefreshBehaviour {
|
||||
Lazy,
|
||||
Eager,
|
||||
|
@ -79,11 +75,9 @@ struct Configuration {
|
|||
}
|
||||
|
||||
void set(RefreshBehaviour refresh) { refresh_behaviour = refresh; }
|
||||
void set(TokenSplitMechanism split) { split_mechanism = split; }
|
||||
void set(OperationMode mode) { operation_mode = mode; }
|
||||
|
||||
RefreshBehaviour refresh_behaviour { RefreshBehaviour::Lazy };
|
||||
TokenSplitMechanism split_mechanism { TokenSplitMechanism::Spaces };
|
||||
OperationMode operation_mode { OperationMode::Unset };
|
||||
};
|
||||
|
||||
|
@ -302,8 +296,6 @@ private:
|
|||
m_suggestion_display->set_origin(row, col, {});
|
||||
}
|
||||
|
||||
bool should_break_token(Vector<u32, 1024>& buffer, size_t index);
|
||||
|
||||
void recalculate_origin();
|
||||
void reposition_cursor(bool to_end = false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue