Skip to content

Commit 63314e3

Browse files
committed
Simplify change from microsoft#306 to avoid confusion
1 parent e88ad9b commit 63314e3

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/Node/MethodDeclaration.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MethodDeclaration extends Node implements FunctionLike {
4040
// FunctionBody
4141
'compoundStatementOrSemicolon'
4242
];
43-
43+
4444
public function hasModifier(int $targetModifier) : bool {
4545
if ($this->modifiers === null) {
4646
return false;
@@ -56,22 +56,6 @@ public function hasModifier(int $targetModifier) : bool {
5656
public function isStatic() : bool {
5757
return $this->hasModifier(TokenKind::StaticKeyword);
5858
}
59-
60-
public function isPublic() : bool {
61-
return $this->hasModifier(TokenKind::PublicKeyword);
62-
}
63-
64-
public function isProtected() : bool {
65-
return $this->hasModifier(TokenKind::ProtectedKeyword);
66-
}
67-
68-
public function isPrivate() : bool {
69-
return $this->hasModifier(TokenKind::PrivateKeyword);
70-
}
71-
72-
public function isAbstract() : bool {
73-
return $this->hasModifier(TokenKind::AbstractKeyword);
74-
}
7559

7660
public function getName() {
7761
return $this->name->getText($this->getFileContents());

0 commit comments

Comments
 (0)