[gnome-shell] Remove unused functions



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

 js/ui/magnifier.js |   80 ----------------------------------------------------
 1 files changed, 0 insertions(+), 80 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 6f7fc56..50ddd72 100644
--- a/js/ui/magnifier.js
+++ b/js/ui/magnifier.js
@@ -1111,20 +1111,6 @@ const ZoomRegion = new Lang.Class({
     },
 
     /**
-     * getBrightness:
-     * Retrive the current brightness of the Zoom Region.
-     * @return  Object containing the brightness change for the red, green,
-     *          and blue channels.
-     */
-    getBrightness: function() {
-        let brightness = {};
-        brightness.r = this._brightness.r;
-        brightness.g = this._brightness.g;
-        brightness.b = this._brightness.b;
-        return brightness;
-    },
-
-    /**
      * setContrast:
      * Alter the contrast of the magnified view.
      * @contrast    Object containing the contrast for the red, green,
@@ -1627,15 +1613,6 @@ const Crosshairs = new Lang.Class({
     },
 
     /**
-     * getOpacity:
-     * Retriev how opaque the crosshairs are.
-     * @return: A value between 0 (transparent) and 255 (opaque).
-     */
-    getOpacity: function() {
-        return this._horizLeftHair.get_opacity();
-    },
-
-    /**
      * setLength:
      * Set the length of the vertical and horizontal lines in the crosshairs.
      * @length: The length of the crosshairs.
@@ -1679,15 +1656,6 @@ const Crosshairs = new Lang.Class({
      },
 
     /**
-     * getClip:
-     * Get the dimensions of the clip rectangle.
-     * @return:   An array of the form [width, height].
-     */
-    getClip: function() {
-        return this._clipSize;
-    },
-
-    /**
      * show:
      * Show the crosshairs.
      */
@@ -1782,23 +1750,10 @@ const MagShaderEffects = new Lang.Class({
         this._inverse.set_enabled(invertFlag);
     },
 
-    /**
-     * getInvertLightness:
-     * Report whether the inversion effect is enabled.
-     * @return:     Boolean.
-     */
-    getInvertLightness: function() {
-        return this._inverse.get_enabled();
-    },
-
     setColorSaturation: function(factor) {
         this._colorDesaturation.set_factor(1.0 - factor);
     },
 
-    getColorSaturation: function() {
-        return 1.0 - this._colorDesaturation.get_factor();
-    },
-
     /**
      * setBrightness:
      * Set the brightness of the magnified view.
@@ -1824,24 +1779,6 @@ const MagShaderEffects = new Lang.Class({
     },
 
     /**
-     * getBrightness:
-     * Retrieve current brightness of the magnified view.
-     * @return: Object containing the brightness for the red, green,
-     *          and blue channels.  Values of 0.0 represent "standard" 
-     *          brightness (no change), whereas values less or greater than
-     *          0.0 indicate decreased or incresaed brightness, respectively.
-     */
-    getBrightness: function() {
-        let result = {};
-        let [bRed, bGreen, bBlue] = this._brightnessContrast.get_brightness();
-        result.r = bRed;
-        result.g = bGreen;
-        result.b = bBlue;
-
-        return result;
-    },
-
-    /**
      * Set the contrast of the magnified view.
      * @contrast:   Object containing the contrast for the red, green,
      *              and blue channels.  Values of 0.0 represent "standard"
@@ -1865,21 +1802,4 @@ const MagShaderEffects = new Lang.Class({
              bRed != NO_CHANGE || bGreen != NO_CHANGE || bBlue != NO_CHANGE
         );
     },
-
-    /**
-     * Retrieve current contrast of the magnified view.
-     * @return: Object containing the contrast for the red, green,
-     *          and blue channels.  Values of 0.0 represent "standard"
-     *          contrast (no change), whereas values less or greater than
-     *          0.0 indicate decreased or incresaed contrast, respectively.
-     */
-    getContrast: function() {
-        let resutl = {};
-        let [cRed, cGreen, cBlue] = this._brightnessContrast.get_contrast();
-        result.r = cRed;
-        result.g = cGreen;
-        result.b = cBlue;
-
-        return result;
-    }
 });


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