Skip to content

Commit

Permalink
remove unused line
Browse files Browse the repository at this point in the history
  • Loading branch information
MS-Renan committed Jun 12, 2024
1 parent 39a2005 commit 40c186d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pq_flash_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,6 @@ template <typename T, typename LabelT>
bool PQFlashIndex<T, LabelT>::point_has_any_label(uint32_t point_id, const std::vector<LabelT> &label_ids)
{
uint32_t start_vec = _pts_to_label_offsets[point_id];
uint32_t num_lbls = _pts_to_label_counts[start_vec];
bool ret_val = false;
for (auto &cur_lbl : label_ids)
{
Expand Down Expand Up @@ -706,9 +705,10 @@ void PQFlashIndex<T, LabelT>::parse_label_file(std::basic_istream<char> &infile,
uint32_t num_pts_in_label_file;
uint32_t num_total_labels;
get_label_file_metadata(buffer, num_pts_in_label_file, num_total_labels);
_num_total_labels = num_total_labels;

_pts_to_label_offsets = new uint32_t[num_pts_in_label_file];
_pts_to_label_counts = new uint32_t[num_pts_in_label_file];
_pts_to_label_counts = new uint32_t[num_total_labels];
_pts_to_labels = new LabelT[num_total_labels];
uint32_t labels_seen_so_far = 0;

Expand Down

0 comments on commit 40c186d

Please sign in to comment.