mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibRegex: Remove Lexer::slice_back() and just use StringViews
This commit is contained in:
parent
19bf7734a4
commit
86811683b0
2 changed files with 4 additions and 4 deletions
|
@ -94,8 +94,6 @@ public:
|
|||
bool try_skip(char);
|
||||
char skip();
|
||||
|
||||
StringView slice_back(size_t offset) const { return m_source.substring_view(m_position - offset - 1, offset); }
|
||||
|
||||
private:
|
||||
ALWAYS_INLINE char peek(size_t offset = 0) const;
|
||||
ALWAYS_INLINE void consume();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue