diff --git a/src/Index/Index.php b/src/Index/Index.php index c72e3e3..39e8d70 100644 --- a/src/Index/Index.php +++ b/src/Index/Index.php @@ -187,9 +187,6 @@ class Index implements ReadableIndex, \Serializable public function removeDefinition(string $fqn) { $parts = $this->splitFqn($fqn); - if (empty($parts)) { - throw new \Exception($fqn); - } $this->removeIndexedDefinition(0, $parts, $this->definitions, $this->definitions); unset($this->references[$fqn]);