From a77eb5352ec0c1a471306e57c1835ae31c016ac5 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 5 Sep 2021 11:47:24 +0200 Subject: [PATCH] cleanup: Remove unused clapperVersion variable --- src/dialogs.js | 2 +- src/misc.js | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/dialogs.js b/src/dialogs.js index 3e35256c..d3fbb69b 100644 --- a/src/dialogs.js +++ b/src/dialogs.js @@ -289,7 +289,7 @@ class ClapperAboutDialog extends Gtk.AboutDialog modal: true, program_name: Misc.appName, comments: _('A GNOME media player powered by GStreamer'), - version: Misc.getClapperVersion(), + version: pkg.version, authors: ['Rafał Dzięgiel'], artists: ['Rafał Dzięgiel'], license_type: Gtk.License.GPL_3_0, diff --git a/src/misc.js b/src/misc.js index 46c4171e..63dd92e3 100644 --- a/src/misc.js +++ b/src/misc.js @@ -11,7 +11,6 @@ var subsMimes = [ ]; var clapperPath = null; -var clapperVersion = null; var settings = new Gio.Settings({ schema_id: appId, @@ -40,15 +39,6 @@ function getClapperPath() : '.'; } -function getClapperVersion() -{ - return (clapperVersion) - ? clapperVersion - : (pkg) - ? pkg.version - : ''; -} - function getClapperThemeIconUri() { const display = Gdk.Display.get_default();