From c831f86d259b6d949b0f71b894c7f2b07b4eed15 Mon Sep 17 00:00:00 2001 From: alexwl Date: Wed, 20 Feb 2019 12:48:48 +0300 Subject: Remove unused variables and functions --- javascript/app/controllers/package.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'javascript/app/controllers') diff --git a/javascript/app/controllers/package.js b/javascript/app/controllers/package.js index 278899f..a9f5559 100644 --- a/javascript/app/controllers/package.js +++ b/javascript/app/controllers/package.js @@ -9,18 +9,14 @@ export default Ember.Controller.extend({ query : null, searchMode : "currentPackage", createSearchUrlFunction : Ember.computed("searchMode",function() { - const packageId = this.get('model.id'); - const query = this.get('query'); + const packageId = this.get('model.id'); if(this.get('searchMode') === "currentPackage") { return (query) => urls.identifierSearchUrl(packageId,query); - } else { + } else { return (query) => urls.globalIdentifiersUrl(query); } }), actions : { - searchModeChanged () { - - }, searchIdentifier (query) { if(query) { this.set('currentFile',null); -- cgit v1.2.3