Skip to content

Commit

Permalink
UserHighlighterSimple: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Feb 19, 2025
1 parent 0fb5f0e commit 7fe5744
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions UserHighlighterSimple/modules/UserHighlighterSimple.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ export class UserHighlighterSimple {
return false;
}

if ( this.notInUserOrUserTalkNamespace() ) {
return false;
}

const isDiscussionToolsSectionLink = url.includes( '#' );
if ( isDiscussionToolsSectionLink ) {
return false;
Expand Down Expand Up @@ -229,12 +225,6 @@ export class UserHighlighterSimple {
return '';
}

notInUserOrUserTalkNamespace() {
const namespace = this.titleHelper.getNamespaceId();
// TODO: refactor $.inArray
return this.$.inArray( namespace, [ 2, 3 ] ) === -1;
}

/**
* @return {string}
*/
Expand Down

0 comments on commit 7fe5744

Please sign in to comment.