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

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

Change subject: Remove unused mw.UploadWizardDeedPreview class
......................................................................

Remove unused mw.UploadWizardDeedPreview class

Unused since f4c35b213e241dd55b16b136c457e9cfd43b88ae,
replaced by uw.ui.DeedPreview.

(Split off from Id3f2642b50d380fba77d6362564930ec08402b76.)

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


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

diff --git a/resources/mw.UploadWizard.js b/resources/mw.UploadWizard.js
index 1c225df..cbe0413 100644
--- a/resources/mw.UploadWizard.js
+++ b/resources/mw.UploadWizard.js
@@ -475,47 +475,6 @@
                return deeds;
        };
 
-       mw.UploadWizardDeedPreview = function (upload) {
-               this.upload = upload;
-       };
-
-       mw.UploadWizardDeedPreview.prototype = {
-
-               setup: function () {
-                       // prepare a preview on the deeds page
-                       this.$thumbnailDiv = $( '<div></div>' ).addClass( 
'mwe-upwiz-thumbnail' );
-                       this.upload.setThumbnail(
-                               this.$thumbnailDiv,
-                               mw.UploadWizard.config.thumbnailWidth,
-                               mw.UploadWizard.config.thumbnailMaxHeight,
-                               true
-                       );
-               },
-
-               remove: function () {
-                       if ( this.$thumbnailDiv ) {
-                               this.$thumbnailDiv.remove();
-                       }
-               },
-
-               // Has this preview been attached to the DOM already?
-               isAttached: false,
-
-               /*
-                * Append the div for this preview object to the DOM.
-                * We need to ensure that we add thumbs in the right order
-                * (the order in which the user selected files).
-                *
-                * Will only append once.
-                */
-               attach: function () {
-                       if ( !this.isAttached ) {
-                               $( '#mwe-upwiz-deeds-thumbnails' ).append( 
this.$thumbnailDiv );
-                               this.isAttached = true;
-                       }
-               }
-       };
-
        /**
         * Check if a value is null, undefined, or the empty string.
         *

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I52a546800601c82637d1cbecf0d64e6b6591bd75
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