diff --git a/js/dbusServices/screencast/screencastService.js b/js/dbusServices/screencast/screencastService.js index e98089663..9ede9b541 100644 --- a/js/dbusServices/screencast/screencastService.js +++ b/js/dbusServices/screencast/screencastService.js @@ -383,7 +383,6 @@ var ScreencastService = class extends ServiceImplementation { this._removeRecorder(sender); invocation.return_value(GLib.Variant.new('(bs)', returnValue)); } - }); } catch (error) { log(`Failed to start recorder: ${error.message}`); @@ -441,7 +440,6 @@ var ScreencastService = class extends ServiceImplementation { this._removeRecorder(sender); invocation.return_value(GLib.Variant.new('(bs)', returnValue)); } - }); } catch (error) { log(`Failed to start recorder: ${error.message}`); diff --git a/js/misc/history.js b/js/misc/history.js index c82722c5a..1fba77009 100644 --- a/js/misc/history.js +++ b/js/misc/history.js @@ -20,7 +20,6 @@ var HistoryManager = class { this._history = global.settings.get_strv(this._key); global.settings.connect(`changed::${this._key}`, this._historyChanged.bind(this)); - } else { this._history = []; } @@ -72,7 +71,6 @@ var HistoryManager = class { addItem(input) { if (this._history.length == 0 || this._history[this._history.length - 1] != input) { - this._history = this._history.filter(entry => entry != input); this._history.push(input); this._save(); diff --git a/js/misc/introspect.js b/js/misc/introspect.js index bae7f6373..e46a7e8c5 100644 --- a/js/misc/introspect.js +++ b/js/misc/introspect.js @@ -170,7 +170,6 @@ var IntrospectService = class { for (let app of apps) { let windows = app.get_windows(); for (let window of windows) { - if (!this._isEligibleWindow(window)) continue; diff --git a/js/misc/jsParse.js b/js/misc/jsParse.js index c92465fc2..c4e077f62 100644 --- a/js/misc/jsParse.js +++ b/js/misc/jsParse.js @@ -201,7 +201,6 @@ function removeLiterals(str) { // Returns true if there is reason to think that eval(str) // will modify the global scope function isUnsafeExpression(str) { - // Check for any sort of assignment // The strategy used is dumb: remove any quotes // or regexs and comparison operators and see if there is an '=' character. diff --git a/js/misc/smartcardManager.js b/js/misc/smartcardManager.js index e1d0f1bce..d9b6ff474 100644 --- a/js/misc/smartcardManager.js +++ b/js/misc/smartcardManager.js @@ -111,6 +111,5 @@ var SmartcardManager = class { return true; } - }; Signals.addSignalMethods(SmartcardManager.prototype); diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 25683b55d..5332d3b7c 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -907,7 +907,6 @@ class ThumbnailSwitcher extends SwitcherPopup.SwitcherList { } else { this.addItem(box, null); } - } this.connect('destroy', this._onDestroy.bind(this)); diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index ab4bb6c86..322aa3cd7 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -867,7 +867,6 @@ var PageManager = GObject.registerClass({ global.settings.connect('changed::app-picker-layout', this._loadPages.bind(this)); - } _loadPages() { diff --git a/js/ui/components/automountManager.js b/js/ui/components/automountManager.js index 1cb84a7ec..b83bd22c6 100644 --- a/js/ui/components/automountManager.js +++ b/js/ui/components/automountManager.js @@ -201,7 +201,6 @@ var AutomountManager = class { e.message.includes('Failed to activate device: Incorrect passphrase') || // cryptsetup returns EINVAL in many cases, including wrong TCRYPT password/parameters e.message.includes('Failed to load device\'s parameters: Invalid argument')) { - this._reaskPassword(volume); } else { if (e.message.includes('Compiled against a version of libcryptsetup that does not support the VeraCrypt PIM setting')) { diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index ae75f3c00..e8f3b30f4 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -238,7 +238,6 @@ var AuthenticationDialog = GObject.registerClass({ /* Yay, all done */ if (gainedAuthorization) { this._emitDone(false); - } else { /* Unless we are showing an existing error message from the PAM * module (the PAM module could be reporting the authentication diff --git a/js/ui/dialog.js b/js/ui/dialog.js index bb54ac029..4af154d6f 100644 --- a/js/ui/dialog.js +++ b/js/ui/dialog.js @@ -224,7 +224,6 @@ var MessageDialogContent = GObject.registerClass({ return GLib.SOURCE_REMOVE; }); } - } set title(title) { diff --git a/js/ui/kbdA11yDialog.js b/js/ui/kbdA11yDialog.js index 3cf56b136..a45e02443 100644 --- a/js/ui/kbdA11yDialog.js +++ b/js/ui/kbdA11yDialog.js @@ -33,8 +33,7 @@ class KbdA11yDialog extends GObject.Object { : _("Slow Keys Turned Off"); description = _('You just held down the Shift key for 8 seconds. This is the shortcut ' + 'for the Slow Keys feature, which affects the way your keyboard works.'); - - } else if (whatChanged & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) { + } else if (whatChanged & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) { key = KEY_STICKY_KEYS_ENABLED; enabled = (newFlags & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) > 0; title = enabled diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 5abee0f75..147e46b2e 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -205,7 +205,6 @@ var Notebook = GObject.registerClass({ scrollToBottom(index) { let tabData = this._tabs[index]; tabData._scrollToBottom = true; - } _onAdjustValueChanged(tabData) { diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 036de7f75..7cfe06fd4 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -1656,7 +1656,6 @@ var ZoomRegion = class ZoomRegion { var Crosshairs = GObject.registerClass( class Crosshairs extends Clutter.Actor { _init() { - // Set the group containing the crosshairs to three times the desktop // size in case the crosshairs need to appear to be infinite in // length (i.e., extend beyond the edges of the view they appear in). diff --git a/js/ui/messageList.js b/js/ui/messageList.js index a79f87bb4..a5b6249c9 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -291,7 +291,6 @@ var LabelExpanderLayout = GObject.registerClass({ if (child.visible) child.allocate(box); } - } }); diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js index 9ab1cbb9d..110962259 100644 --- a/js/ui/padOsd.js +++ b/js/ui/padOsd.js @@ -673,7 +673,6 @@ var PadOsd = GObject.registerClass({ // the same group. this._groupPads.splice(this._groupPads.indexOf(device), 1); this._updatePadChooser(); - } }); diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 43fd89db2..74c02056f 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -785,7 +785,6 @@ function getInputSourceManager() { var InputSourceIndicatorContainer = GObject.registerClass( class InputSourceIndicatorContainer extends St.Widget { - vfunc_get_preferred_width(forHeight) { // Here, and in vfunc_get_preferred_height, we need to query // for the height of all children, but we ignore the results diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 3d4acd5b0..6b19fad0e 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1588,7 +1588,6 @@ var DeviceCategory = class extends PopupMenu.PopupMenuSection { this._summaryItem.menu.addSettingsAction(_('Network Settings'), 'gnome-network-panel.desktop'); this._summaryItem.hide(); - } _sync() { diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js index d98355dee..e30a4222f 100644 --- a/js/ui/status/thunderbolt.js +++ b/js/ui/status/thunderbolt.js @@ -77,7 +77,6 @@ var Client = class { this.probing = this._proxy.Probing; if (this.probing) this.emit('probing-changed', this.probing); - } _onPropertiesChanged(proxy, properties) { diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js index 5cc4ab2f2..b1e273006 100644 --- a/js/ui/switcherPopup.js +++ b/js/ui/switcherPopup.js @@ -487,7 +487,6 @@ var SwitcherList = GObject.registerClass({ this._scrollToRight(index); else if (this._items[index].allocation.x1 - value < 0) this._scrollToLeft(index); - } _scrollToLeft(index) { diff --git a/js/ui/userWidget.js b/js/ui/userWidget.js index 0f4ed0891..4e7277908 100644 --- a/js/ui/userWidget.js +++ b/js/ui/userWidget.js @@ -222,7 +222,6 @@ class UserWidget extends St.BoxLayout { opacity: 0, }); this.add_child(this._label); - } this._updateUser(); diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 91b764ea8..8ea178153 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -357,7 +357,6 @@ var WorkspaceTracker = class { workspace._windowAddedId = workspace.connect('window-added', this._queueCheckWorkspaces.bind(this)); workspace._windowRemovedId = workspace.connect('window-removed', this._windowRemoved.bind(this)); } - } else { // Assume workspaces are only removed sequentially // (e.g. 2,3,4 - not 2,4,7) @@ -516,7 +515,6 @@ var AppSwitchAction = GObject.registerClass({ } vfunc_gesture_progress(_actor) { - if (this.get_n_current_points() == 3) { for (let i = 0; i < this.get_n_current_points(); i++) { let [startX, startY] = this.get_press_coords(i); @@ -526,7 +524,6 @@ var AppSwitchAction = GObject.registerClass({ Math.abs(y - startY) > APP_MOTION_THRESHOLD) return false; } - } return true; diff --git a/js/ui/workspaceSwitcherPopup.js b/js/ui/workspaceSwitcherPopup.js index 4613e96ec..5b65bec8a 100644 --- a/js/ui/workspaceSwitcherPopup.js +++ b/js/ui/workspaceSwitcherPopup.js @@ -172,7 +172,6 @@ class WorkspaceSwitcherPopup extends St.Widget { indicator = new St.Bin({ style_class: 'ws-switcher-box' }); this._list.add_actor(indicator); - } let workArea = Main.layoutManager.getWorkAreaForMonitor(Main.layoutManager.primaryIndex);