diff --git a/src/pq_flash_index.cpp b/src/pq_flash_index.cpp index bba101bb3..fbb81d55f 100644 --- a/src/pq_flash_index.cpp +++ b/src/pq_flash_index.cpp @@ -209,11 +209,6 @@ template void PQFlashIndex::load_cache_ diskann::cout << "Loading the cache list into memory.." << std::flush; size_t num_cached_nodes = node_list.size(); - // borrow thread data - ScratchStoreManager> manager(this->_thread_data); - auto this_thread_data = manager.scratch_space(); - IOContext &ctx = this_thread_data->ctx; - // Allocate space for neighborhood cache _nhood_cache_buf = new uint32_t[num_cached_nodes * (_max_degree + 1)]; memset(_nhood_cache_buf, 0, num_cached_nodes * (_max_degree + 1)); @@ -506,10 +501,6 @@ template void PQFlashIndex::use_medoids alloc_aligned(((void **)&_centroid_data), _num_medoids * _aligned_dim * sizeof(float), 32); std::memset(_centroid_data, 0, _num_medoids * _aligned_dim * sizeof(float)); - // borrow ctx - ScratchStoreManager> manager(this->_thread_data); - auto data = manager.scratch_space(); - IOContext &ctx = data->ctx; diskann::cout << "Loading centroid data from medoids vector data of " << _num_medoids << " medoid(s)" << std::endl; std::vector nodes_to_read;