From 0e1bc7309b1150ab698651056968d7add8b140b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 28 Mar 2017 01:41:15 +0200 Subject: [PATCH] ve.init.mw.DesktopArticleTarget: Remove unused code As it happens, #redirectsub is correctly spelled all lowercase, unlike #contentSub. This line does nothing. We remove #redirectsub correctly elsewhere; I don't think this was ever meant to be here. Follows-up 96421b283cab2. Change-Id: I3e4c6eb2ff94f363b488477b3ddd248e571e723a --- modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js index ba75832205..54b400b991 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js @@ -1360,7 +1360,6 @@ ve.init.mw.DesktopArticleTarget.prototype.restorePage = function () { // Remove any VE-added redirectMsg if ( $( '.mw-body-content > .ve-redirect-header' ).length ) { $( '.mw-body-content > .ve-redirect-header' ).remove(); - $( '#contentSub #redirectSub, #contentSub #redirectSub + br' ).remove(); } // Restore any previous redirectMsg/redirectsub