Bartosz Dziewoński has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/277711

Change subject: mw.UploadWizard: Remove unused method #removeEmptyUploads
......................................................................

mw.UploadWizard: Remove unused method #removeEmptyUploads

Unused since 59ebd690cab66fd1c97afe43d2abb35b66aaf10b, apparently?
Definitely not needed after f9fe522b1594135201a65b9bccef4de3dc204d67.

Change-Id: I9639665ada80d512a29a3cc40456d8bbaf252c98
---
M resources/mw.UploadWizard.js
1 file changed, 0 insertions(+), 17 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard 
refs/changes/11/277711/1

diff --git a/resources/mw.UploadWizard.js b/resources/mw.UploadWizard.js
index 612b590..c1e3ef3 100644
--- a/resources/mw.UploadWizard.js
+++ b/resources/mw.UploadWizard.js
@@ -428,23 +428,6 @@
                },
 
                /**
-                * This is useful to clean out unused upload file inputs if the 
user hits GO.
-                * We are using a second array to iterate, because we will be 
splicing the main one, _this.uploads
-                */
-               removeEmptyUploads: function () {
-
-                       // First remove array keys that don't have an assigned 
upload object
-                       this.uploads = $.grep( this.uploads,
-                               function ( v ) { return v !== undefined; }
-                       );
-
-                       // Now remove upload objects that exist but are empty
-                       this.removeMatchingUploads( function ( upload ) {
-                               return mw.isEmpty( upload.filename );
-                       } );
-               },
-
-               /**
                 * Clear out uploads that are in error mode, perhaps before 
proceeding to the next step
                 */
                removeErrorUploads: function () {

-- 
To view, visit https://gerrit.wikimedia.org/r/277711
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9639665ada80d512a29a3cc40456d8bbaf252c98
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to