diff --git a/src/List/ObjectListTrait.php b/src/List/ObjectListTrait.php index cedbf4a..52c8ecb 100644 --- a/src/List/ObjectListTrait.php +++ b/src/List/ObjectListTrait.php @@ -42,20 +42,6 @@ public function templateName(): string return str_replace('_', '-', $this->name()); } - public function libraryName(): string - { - return match ($this) { - default => $this instanceof \BackedEnum ? $this->value : $this->name, - }; - } - - public function attachLibraries(): array - { - return [ - sprintf('pinto/%s', $this->libraryName()), - ]; - } - public function build(callable $wrapper, object $object): callable { return function (mixed $build) use ($wrapper) { diff --git a/src/List/Resource/ObjectListEnumResource.php b/src/List/Resource/ObjectListEnumResource.php index c0ea9c2..f2f1366 100644 --- a/src/List/Resource/ObjectListEnumResource.php +++ b/src/List/Resource/ObjectListEnumResource.php @@ -39,16 +39,6 @@ public function templateName(): string return $this->pintoEnum->templateName(); } - public function libraryName(): string - { - return $this->pintoEnum->libraryName(); - } - - public function attachLibraries(): array - { - return $this->pintoEnum->attachLibraries(); - } - public function build(callable $wrapper, object $object): callable { return $this->pintoEnum->build($wrapper, $object); diff --git a/src/Resource/ResourceInterface.php b/src/Resource/ResourceInterface.php index 98acd97..caf8fdd 100644 --- a/src/Resource/ResourceInterface.php +++ b/src/Resource/ResourceInterface.php @@ -22,18 +22,6 @@ public function name(): string; */ public function templateName(): string; - /** - * Get the library name. - */ - public function libraryName(): string; - - /** - * Get the libraries to attach. - * - * @return string[] - */ - public function attachLibraries(): array; - /** * Build function called after an object build method. * diff --git a/tests/PintoObjectListEnumResourceTest.php b/tests/PintoObjectListEnumResourceTest.php index ff520ca..2ef0b15 100644 --- a/tests/PintoObjectListEnumResourceTest.php +++ b/tests/PintoObjectListEnumResourceTest.php @@ -20,8 +20,6 @@ public function testImmutabilityOffsetUnet(): void static::assertEquals($enum->getClass(), $resource->getClass()); static::assertEquals($enum->name(), $resource->name()); static::assertEquals($enum->templateName(), $resource->templateName()); - static::assertEquals($enum->libraryName(), $resource->libraryName()); - static::assertEquals($enum->attachLibraries(), $resource->attachLibraries()); static::assertEquals($enum->templateDirectory(), $resource->templateDirectory()); static::assertEquals($enum->cssDirectory(), $resource->cssDirectory()); static::assertEquals($enum->jsDirectory(), $resource->jsDirectory());