Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
jraddaoui committed Dec 4, 2024
1 parent 404b5ce commit cb1744c
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,6 @@ public function addIndex($name, Elastica\Index $index)
$this->indices[$name] = $index;
}

/**
* Delete ElasticSearch indices. If an index name is provided,
* only that specific index will be deleted.
*
* @param string $name Index name to be deleted (optional)
*/
public function delete($name = null)
{
if ($name && $this->indices[$name]) {
$this->indices[$name]->delete();

return;
}
foreach ($this->indices as $index) {
$index->delete();
}
}

public function addDocuments($name, $documents)
{
$this->indices[$name]->addDocuments($documents);
Expand Down

0 comments on commit cb1744c

Please sign in to comment.