From c30a0e0ca27aa93db65fb9d2399a596eeb610b6d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 9 Jul 2021 17:03:22 +1000 Subject: Inline String::Data no-copy constructor --- src/string.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/string.cc') diff --git a/src/string.cc b/src/string.cc index b5f04f29..37467451 100644 --- a/src/string.cc +++ b/src/string.cc @@ -6,13 +6,6 @@ namespace Kakoune { -String::Data::Data(String::NoCopy, const char* data, size_t size) -{ - l.ptr = const_cast(data); - l.size = size; - l.capacity = 0; -} - String::Data::Data(const char* data, size_t size, size_t capacity) { if (capacity > Short::capacity) -- cgit v1.2.3