From c9d6b13f6ac691d678163d72dde7b8664d588d18 Mon Sep 17 00:00:00 2001 From: Magdalen Berns Date: Sat, 7 Sep 2013 11:43:29 +0100 Subject: [PATCH] Remove unused functions Bug https://bugzilla.gnome.org/show_bug.cgi?id=707666 --- js/ui/magnifier.js | 80 ---------------------------------------------- 1 file changed, 80 deletions(-) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 6f7fc56b6..50ddd7240 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -1110,20 +1110,6 @@ const ZoomRegion = new Lang.Class({ this._magShaderEffects.setBrightness(this._brightness); }, - /** - * 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. @@ -1626,15 +1612,6 @@ const Crosshairs = new Lang.Class({ this._vertBottomHair.set_opacity(opacity); }, - /** - * 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. @@ -1678,15 +1655,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. @@ -1823,24 +1778,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, @@ -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; - } });