[gnome-shell/gnome-40] magnifier: Remove unused return value



commit 4304a4c76703efc72aa23368a2439fdd16b2f5ee
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>
    (cherry picked from commit 77b175e76342af4795d3a4f9fb150cf4a8a3ea52)

 js/ui/magnifier.js | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 9db8e999c4..d5d93235a3 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() {
         let [xMouse, yMouse] = 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]