Merge "Remove/fix a few small pieces of unused code"

This commit is contained in:
jenkins-bot 2021-05-24 13:23:53 +00:00 committed by Gerrit Code Review
commit 028658a4e1
5 changed files with 5 additions and 6 deletions

View file

@ -70,7 +70,8 @@ setInterval( function () {
// Do nothing
}
}
liveSignatures = updatedSignatures;
// Stop updating signatures that failed once
ve.ce.MWSignatureNode.static.liveSignatures = updatedSignatures;
}, 60 * 1000 );
/* Methods */

View file

@ -32,8 +32,6 @@ ve.dm.MWWikitextSurfaceFragment.prototype.hasMatchingAncestor = function ( type,
nodes = this.getSelectedLeafNodes(),
all = !!nodes.length;
nodes = this.getSelectedLeafNodes();
all = !!nodes.length;
for ( i = 0, len = nodes.length; i < len; i++ ) {
text = this.document.data.getText( false, nodes[ i ].getRange() );
// TODO: Use a registry to do this matching

View file

@ -280,7 +280,7 @@ ve.ui.MWAceEditorWidget.prototype.selectRange = function ( from, to ) {
function offsetToPos( offset ) {
var row = 0,
col = 0,
col,
pos = 0;
while ( row < lines.length && pos + lines[ row ].length < offset ) {

View file

@ -294,7 +294,7 @@ ve.ui.MWCategoryWidget.prototype.getCategories = function () {
ve.ui.MWCategoryWidget.prototype.queryCategoryStatus = function ( categoryNames ) {
var widget = this,
promises = [], index = 0, batchSize = 50,
categoryNamesToQuery = [];
categoryNamesToQuery;
// Get rid of any we already know the hidden status of, or have an entry
// if normalizedTitles (i.e. have been fetched before)

View file

@ -85,7 +85,7 @@ ve.ui.MWTemplateTitleInputWidget.prototype.getLookupRequest = function () {
redirects = ( response.query && response.query.redirects ) || {},
origPages = ( response.query && response.query.pages ) || {},
newPages = [],
titles = [];
titles;
// Build a new array to replace response.query.pages, ensuring everything goes into
// the order defined by the page's index key, instead of whatever random order the