Skip to content

Commit d13b2b4

Browse files
committed
remove unused
1 parent 6e05c90 commit d13b2b4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/TypeRegistry.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ static function clearTypes(): void
2222
static::$types = [];
2323
}
2424

25-
/**
26-
* @throws Exception
27-
*/
28-
public static function get(string $classname): callable
29-
{
30-
return static fn() => static::byClass($classname, static::cacheName($classname));
31-
}
32-
3325
public static function set(Type $type): callable|Type
3426
{
3527
// @phpstan-ignore-next-line
@@ -41,14 +33,6 @@ public static function set(Type $type): callable|Type
4133
return self::$types[$cachedName];
4234
}
4335

44-
protected static function byClass(string $classname, string $cacheName): Type
45-
{
46-
return static::fromCache($cacheName, function () use ($classname) {
47-
assert(class_exists($classname));
48-
return new $classname();
49-
});
50-
}
51-
5236
public static function fromCache(string $cachename, callable $getter): Type
5337
{
5438
if (!isset(static::$types[$cachename])) {

0 commit comments

Comments
 (0)