File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -157,23 +157,20 @@ std::unique_ptr<IndexPathFactory> FileStorePathFactory::CreateGlobalIndexFileFac
157157 std::string NewPath () const override {
158158 return factory_->NewIndexFile ();
159159 }
160-
161160 std::string ToPath (const std::shared_ptr<IndexFileMeta>& file) const override {
162161 const auto & external_path = file->ExternalPath ();
163162 if (external_path) {
164163 return external_path.value ();
165164 }
166165 return PathUtil::JoinPath (factory_->IndexPath (factory_->RootPath ()), file->FileName ());
167166 }
168-
169167 std::string ToPath (const std::string& file_name) const override {
170168 const auto & external_path = factory_->GetGlobalIndexExternalPath ();
171169 if (external_path) {
172170 return PathUtil::JoinPath (external_path.value (), file_name);
173171 }
174172 return PathUtil::JoinPath (factory_->IndexPath (factory_->RootPath ()), file_name);
175173 }
176-
177174 bool IsExternalPath () const override {
178175 return factory_->GetGlobalIndexExternalPath () != std::nullopt ;
179176 }
You can’t perform that action at this time.
0 commit comments