Skip to content

Commit ed69345

Browse files
committed
Remove dead code
1 parent f02aa64 commit ed69345

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Database/Adapter/Postgres.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,6 @@ public function createCollection(string $name, array $attributes = [], array $in
194194
$namespace = $this->getNamespace();
195195
$id = $this->filter($name);
196196

197-
// Check if any attributes are vector type and ensure extension is installed
198-
$hasVectorAttributes = false;
199-
foreach ($attributes as $attribute) {
200-
if ($attribute->getAttribute('type') === Database::VAR_VECTOR) {
201-
$hasVectorAttributes = true;
202-
break;
203-
}
204-
}
205-
206197
/** @var array<string> $attributeStrings */
207198
$attributeStrings = [];
208199
foreach ($attributes as $attribute) {

0 commit comments

Comments
 (0)