1
Fork 0
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:
AnotherTest 2020-12-06 17:03:29 +03:30 committed by Andreas Kling
parent 19bf7734a4
commit 86811683b0
2 changed files with 4 additions and 4 deletions

View file

@ -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();