remove unused previewController member in ImportService

This commit is contained in:
Julian Descottes 2016-12-13 11:04:03 +01:00
parent 25ede9ffff
commit b21fc0490d
3 changed files with 3 additions and 6 deletions

View File

@ -125,7 +125,7 @@
this.storageService = new pskl.service.storage.StorageService(this.piskelController); this.storageService = new pskl.service.storage.StorageService(this.piskelController);
this.storageService.init(); this.storageService.init();
this.importService = new pskl.service.ImportService(this.piskelController, this.previewController); this.importService = new pskl.service.ImportService(this.piskelController);
this.imageUploadService = new pskl.service.ImageUploadService(); this.imageUploadService = new pskl.service.ImageUploadService();
this.imageUploadService.init(); this.imageUploadService.init();

View File

@ -4,13 +4,11 @@
/** /**
* Image an animation import service supporting the import dialog. * Image an animation import service supporting the import dialog.
* @param {!PiskelController} piskelController * @param {!PiskelController} piskelController
* @param {!PreviewController} previewController
* @constructor * @constructor
*/ */
ns.ImportService = ns.ImportService =
function (piskelController, previewController) { function (piskelController) {
this.piskelController_ = piskelController; this.piskelController_ = piskelController;
this.previewController_ = previewController;
}; };
/** /**

View File

@ -36,9 +36,8 @@
var piskelString = this.getPiskel(name); var piskelString = this.getPiskel(name);
var key = this.getKey_(name); var key = this.getKey_(name);
pskl.utils.serialization.Deserializer.deserialize(JSON.parse(piskelString), function (piskel, extra) { pskl.utils.serialization.Deserializer.deserialize(JSON.parse(piskelString), function (piskel) {
pskl.app.piskelController.setPiskel(piskel); pskl.app.piskelController.setPiskel(piskel);
pskl.app.previewController.setFPS(extra.fps);
}); });
}; };