cleanup: Remove unused variables

Spotted by eslint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/607
This commit is contained in:
Florian Müllner
2019-01-31 15:04:56 +01:00
parent e7d44bb349
commit e56d7f5021
33 changed files with 16 additions and 103 deletions

View File

@ -2,7 +2,7 @@
//
// A widget showing the user avatar and name
const { Clutter, Gio, GLib, GObject, St } = imports.gi;
const { Clutter, GLib, GObject, St } = imports.gi;
const Params = imports.misc.params;
@ -44,7 +44,6 @@ var Avatar = class {
iconFile = null;
if (iconFile) {
let file = Gio.File.new_for_path(iconFile);
this.actor.child = null;
this.actor.style = `
background-image: url("${iconFile}");
@ -107,9 +106,6 @@ class UserWidgetLabel extends St.Widget {
let [minRealNameWidth, minRealNameHeight,
natRealNameWidth, natRealNameHeight] = this._realNameLabel.get_preferred_size();
let [minUserNameWidth, minUserNameHeight,
natUserNameWidth, natUserNameHeight] = this._userNameLabel.get_preferred_size();
if (natRealNameWidth <= availWidth)
this._currentLabel = this._realNameLabel;
else