Skip to content

Commit 453d041

Browse files
committed
remove unused fn
1 parent 29981af commit 453d041

File tree

4 files changed

+1
-21
lines changed

4 files changed

+1
-21
lines changed

src/Codegen/Typing/ConcreteType.hack

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ final class ConcreteType extends Type {
2525
return $this->generics;
2626
}
2727

28-
<<__Override>>
29-
public function getAlias(): null {
30-
return null;
31-
}
32-
3328
<<__Override>>
3429
public function hasAlias(): bool {
3530
return false;

src/Codegen/Typing/OptionalType.hack

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ final class OptionalType extends Type {
2121
return $this->type->getGenerics();
2222
}
2323

24-
<<__Override>>
25-
public function getAlias(): ?string {
26-
return $this->type->getAlias();
27-
}
28-
2924
<<__Override>>
3025
public function hasAlias(): bool {
3126
return $this->type->hasAlias();

src/Codegen/Typing/Type.hack

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ abstract class Type {
1919
*/
2020
abstract public function getGenerics(): vec<Type>;
2121

22-
/**
23-
* Alias for this type, if any.
24-
*/
25-
abstract public function getAlias(): ?string;
26-
2722
/**
2823
* Whether this type has an alias (e.g., is of form <alias> or ?<alias>).
2924
*/

src/Codegen/Typing/TypeAlias.hack

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ final class TypeAlias extends Type {
2323
return $this->getType()->getGenerics();
2424
}
2525

26-
<<__Override>>
27-
public function getAlias(): string {
28-
return $this->alias;
29-
}
30-
3126
<<__Override>>
3227
public function hasAlias(): bool {
3328
return $this->getType()->hasAlias();
@@ -40,6 +35,6 @@ final class TypeAlias extends Type {
4035

4136
<<__Override>>
4237
public function render(): string {
43-
return $this->getAlias();
38+
return $this->alias;
4439
}
4540
}

0 commit comments

Comments
 (0)