cleanup: Remove unused clapperVersion variable

This commit is contained in:
Rafostar
2021-09-05 11:47:24 +02:00
parent ca168f34ed
commit a77eb5352e
2 changed files with 1 additions and 11 deletions

View File

@@ -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,

View File

@@ -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();