[feature] Removed IndexFactory class.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>

^ Conflicts:
^	libs/indexer/data_source.cpp
^	libs/indexer/feature.cpp
^	libs/indexer/features_vector.cpp
^	libs/indexer/mwm_set.hpp
This commit is contained in:
Viktor Govako
2025-06-24 21:23:22 -03:00
committed by Konstantin Pastbin
parent 25a4a3b76f
commit 6beabb2fe1
13 changed files with 76 additions and 141 deletions

View File

@@ -5,7 +5,6 @@
#include "generator/generator_tests_support/test_with_custom_mwms.hpp"
#include "indexer/cell_id.hpp"
#include "indexer/data_factory.hpp"
#include "indexer/data_header.hpp"
#include "indexer/data_source.hpp"
#include "indexer/feature.hpp"
@@ -26,9 +25,7 @@
#include "defines.hpp"
#include <algorithm>
#include <cstdint>
#include <string>
#include <utility>
#include <vector>
namespace scale_index_reading_tests
@@ -95,15 +92,12 @@ UNIT_CLASS_TEST(ScaleIndexReadingTest, Mmap)
FilesContainerR cont(path);
feature::DataHeader header(cont);
IndexFactory factory;
factory.Load(cont);
auto const offsetSize = cont.GetAbsoluteOffsetAndSize(INDEX_FILE_TAG);
MmapReader reader(path);
ReaderPtr<Reader> subReader(reader.CreateSubReader(offsetSize.first, offsetSize.second));
ScaleIndex<ReaderPtr<Reader>> index(subReader, factory);
ScaleIndex<ReaderPtr<Reader>> index(subReader);
auto collectNames = [&](m2::RectD const & rect)
{ return CollectNames(id, index, header.GetLastScale(), header.GetLastScale(), rect); };