Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
Flixtastic committed Jan 6, 2025
1 parent 5b29ca5 commit 57d0ef7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/index/TextIndexReadWrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ ContextListMetaData writePostings(ad_utility::File& out,
return std::get<2>(posting);
});

// std::vector<uint64_t> firstElements;
// std::vector<WordIndex> secondElements;
// std::vector<Score> thirdElements;
// firstElements.reserve(postings.size());
// secondElements.reserve(postings.size());
// thirdElements.reserve(postings.size());
// for (const auto& posting : postings) {
// firstElements.push_back(std::get<0>(posting).get());
// secondElements.push_back(std::get<1>(posting));
// thirdElements.push_back(std::get<2>(posting));
// }

std::vector<uint64_t> textRecordList(firstElements.begin(),
firstElements.end());
std::vector<WordIndex> wordIndexList(secondElements.begin(),
Expand Down

0 comments on commit 57d0ef7

Please sign in to comment.