]> git.sesse.net Git - plocate/commitdiff
Remove unused variable.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 30 Sep 2020 17:46:44 +0000 (19:46 +0200)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Wed, 30 Sep 2020 17:46:44 +0000 (19:46 +0200)
plocate.cpp

index 1f811cb3ad735ff83f24cb07587bd0f994ddc77c..1c54bf4d157adfdd593073ccfa0a91c84badb5b0 100644 (file)
@@ -320,7 +320,6 @@ void do_search_file(const string &needle, const char *filename)
        vector<pair<Trigram, size_t>> trigrams;
        for (size_t i = 0; i < needle.size() - 2; ++i) {
                uint32_t trgm = read_trigram(needle, i);
-               pair<uint32_t, uint32_t> range{ 0, corpus.num_trigrams - 1 };
                corpus.find_trigram(trgm, [trgm, &trigrams](const Trigram *trgmptr, size_t len) {
                        if (trgmptr == nullptr) {
                                dprintf("trigram %06x isn't found, we abort the search\n", trgm);