summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-04-15 13:21:57 +1000
committerMaxime Coste <mawww@kakoune.org>2018-04-19 07:58:42 +1000
commitf545ff7727966cba62c0912bb66d032b668e7813 (patch)
treec3fbf10af523af3023933ff7fee4abf1e89d65d0 /src/insert_completer.cc
parente207bd30d4007c9031bd639f8232adc8dc4dce25 (diff)
Move get_word_db to word_db.cc
Diffstat (limited to 'src/insert_completer.cc')
-rw-r--r--src/insert_completer.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc
index 225ac5c9..52f6d770 100644
--- a/src/insert_completer.cc
+++ b/src/insert_completer.cc
@@ -79,15 +79,6 @@ void option_from_string(StringView str, InsertCompleterDesc& opt)
namespace
{
-WordDB& get_word_db(const Buffer& buffer)
-{
- static const ValueId word_db_id = get_free_value_id();
- Value& cache_val = buffer.values()[word_db_id];
- if (not cache_val)
- cache_val = Value(WordDB{buffer});
- return cache_val.as<WordDB>();
-}
-
template<bool other_buffers>
InsertCompletion complete_word(const SelectionList& sels,
const OptionManager& options,