1#include "duckdb/catalog/catalog_entry/index_catalog_entry.hpp"
2#include "duckdb/storage/data_table.hpp"
3
4namespace duckdb {
5
6IndexCatalogEntry::~IndexCatalogEntry() {
7 // remove the associated index from the info
8 if (!info || !index) {
9 return;
10 }
11 for (idx_t i = 0; i < info->indexes.size(); i++) {
12 if (info->indexes[i].get() == index) {
13 info->indexes.erase(info->indexes.begin() + i);
14 break;
15 }
16 }
17}
18
19} // namespace duckdb
20