After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707666 - Unused functions in the magnifier
Unused functions in the magnifier
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: magnifier
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-09-07 02:01 UTC by Magdalen Berns (irc magpie)
Modified: 2013-12-04 18:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Magnifier: Remove unused functions (9.86 KB, patch)
2013-09-07 02:04 UTC, Magdalen Berns (irc magpie)
needs-work Details | Review
Magnifier: Remove unused functions (4.26 KB, patch)
2013-09-07 10:45 UTC, Magdalen Berns (irc magpie)
committed Details | Review

Description Magdalen Berns (irc magpie) 2013-09-07 02:01:42 UTC
There are a lot of unused functions in the magnifier.
Comment 1 Magdalen Berns (irc magpie) 2013-09-07 02:04:10 UTC
Created attachment 254325 [details] [review]
Magnifier: Remove unused functions
Comment 2 drago01 2013-09-07 08:50:47 UTC
Review of attachment 254325 [details] [review]:

Some of them are used for the dbus interface.

Regarding the commit message please add a full link to the bug and not just "Bug 707666"

::: js/ui/magnifier.js
@@ -316,3 @@
-     * @return: The color as a string, e.g. '#0000ffff' or 'blue'.
-     */
-    getCrosshairsColor: function() {

Is used https://git.gnome.org/browse/gnome-shell/tree/js/ui/magnifierDBus.js#n323

@@ -342,3 @@
-     *          crosshairs.
-     */
-    getCrosshairsThickness: function() {

Is used https://git.gnome.org/browse/gnome-shell/tree/js/ui/magnifierDBus.js#n269

@@ -386,3 @@
-     *          crosshairs.
-     */
-    getCrosshairsLength: function() {

https://git.gnome.org/browse/gnome-shell/tree/js/ui/magnifierDBus.js#n287

@@ -416,3 @@
-     * @return:   Whether the crosshairs are clipped.
-     */
-     getCrosshairsClip: function() {

https://git.gnome.org/browse/gnome-shell/tree/js/ui/magnifierDBus.js#n305

@@ -1582,3 @@
-     * @color:  The color as a Clutter.Color.
-     */
-    getColor: function() {

Used in getCrosshairsColor

@@ -1605,3 @@
-     */
-    getThickness: function() {
-        return this._horizLeftHair.get_height();

Used in getCrosshairsThickness

@@ -1654,3 @@
-     * @return: The length of the crosshairs.
-     */
-    getLength: function() {

Used in getCrosshairsLength
Comment 3 Magdalen Berns (irc magpie) 2013-09-07 10:45:17 UTC
Created attachment 254337 [details] [review]
Magnifier: Remove unused functions
Comment 4 drago01 2013-09-07 11:22:32 UTC
Review of attachment 254337 [details] [review]:

OK.
Comment 5 Rico Tzschichholz 2013-09-07 13:08:10 UTC
Review of attachment 254337 [details] [review]:

commit c9d6b13f6ac691d678163d72dde7b8664d588d18
Author: Magdalen Berns <thisMagpie@live.com>
Date:   Sat Sep 7 11:43:29 2013 +0100

    Remove unused functions
    
    Bug https://bugzilla.gnome.org/show_bug.cgi?id=707666