fix: Remove unused hasBadges() function

This commit is contained in:
Jay Sitter 2023-07-02 19:00:06 -04:00
parent 50b1a395f1
commit 61867ee73d
1 changed files with 0 additions and 11 deletions

View File

@ -197,17 +197,6 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
return this.commentView.comment.id;
}
get hasBadges(): boolean {
const cv = this.commentView;
return (
this.isPostCreator ||
isMod(cv.creator.id, this.props.moderators) ||
isAdmin(cv.creator.id, this.props.admins) ||
cv.creator.bot_account
);
}
componentWillReceiveProps(
nextProps: Readonly<{ children?: InfernoNode } & CommentNodeProps>
): void {