Skip to content

Commit 7fe5744

Browse files
committed
UserHighlighterSimple: remove dead code
1 parent 0fb5f0e commit 7fe5744

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

UserHighlighterSimple/modules/UserHighlighterSimple.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,6 @@ export class UserHighlighterSimple {
166166
return false;
167167
}
168168

169-
if ( this.notInUserOrUserTalkNamespace() ) {
170-
return false;
171-
}
172-
173169
const isDiscussionToolsSectionLink = url.includes( '#' );
174170
if ( isDiscussionToolsSectionLink ) {
175171
return false;
@@ -229,12 +225,6 @@ export class UserHighlighterSimple {
229225
return '';
230226
}
231227

232-
notInUserOrUserTalkNamespace() {
233-
const namespace = this.titleHelper.getNamespaceId();
234-
// TODO: refactor $.inArray
235-
return this.$.inArray( namespace, [ 2, 3 ] ) === -1;
236-
}
237-
238228
/**
239229
* @return {string}
240230
*/

0 commit comments

Comments
 (0)