diff options
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 9963b7cc..084af636 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -126,8 +126,8 @@ public: StringView operator[](LineCount line) const { return m_lines[line]; } - SharedString shared_line(LineCount line) const - { return m_lines.get_shared(line); } + ref_ptr<StringStorage> line_storage(LineCount line) const + { return m_lines.get_storage(line); } // returns an iterator at given coordinates. clamp line_and_column BufferIterator iterator_at(ByteCoord coord) const; @@ -182,10 +182,6 @@ private: { return BufferLines::operator[]((int)line); } [[gnu::always_inline]] - SharedString get_shared(LineCount line) const - { return SharedString{get_storage(line)}; } - - [[gnu::always_inline]] StringView operator[](LineCount line) const { return get_storage(line)->strview(); } |
