[gnome-shell] magnifier: Remove unused return value



commit 77b175e76342af4795d3a4f9fb150cf4a8a3ea52
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 29 22:14:30 2021 +0200

    magnifier: Remove unused return value
    
    Before the introduction of PointerWatcher, the method was used as
    a timeout handler. That hasn't been the case since 2012, so drop
    the return value.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1932>

 js/ui/magnifier.js | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index f170bbed01..57b32cb057 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -228,7 +228,6 @@ var Magnifier = class Magnifier {
      * scrollToMousePos:
      * Position all zoom regions' ROI relative to the current location of the
      * system pointer.
-     * @returns {bool} true.
      */
     scrollToMousePos(...args) {
         const [xMouse, yMouse] = args.length ? args : global.get_pointer();
@@ -247,7 +246,6 @@ var Magnifier = class Magnifier {
             else
                 this.showSystemCursor();
         }
-        return true;
     }
 
     /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]