fix: Remove unused hasBadges() function
authorJay Sitter <jay@jaysitter.com>
Sun, 2 Jul 2023 23:00:06 +0000 (19:00 -0400)
committerJay Sitter <jay@jaysitter.com>
Sun, 2 Jul 2023 23:01:14 +0000 (19:01 -0400)
src/shared/components/comment/comment-node.tsx

index c6b37fdb2636f8d1589704d5c3b687082c7236f6..662b67be4655ed962bf051c21713a812d67a9b63 100644 (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 {