Remove unused code in TabSkin class.

This commit is contained in:
Ghazi Triki 2017-08-07 21:14:47 +01:00
parent 35cc113996
commit b5bffb0816

View File

@ -61,55 +61,6 @@ package org.bigbluebutton.skins {
*/
private static var cache:Object = {};
//--------------------------------------------------------------------------
//
// Class methods
//
//--------------------------------------------------------------------------
/**
* @private
* Several colors used for drawing are calculated from the base colors
* of the component (themeColor, borderColor and fillColors).
* Since these calculations can be a bit expensive,
* we calculate once per color set and cache the results.
*/
private static function calcDerivedStyles(themeColor:uint, borderColor:uint, falseFillColor0:uint, falseFillColor1:uint, fillColor0:uint, fillColor1:uint):Object {
var key:String = HaloColors.getCacheKey(themeColor, borderColor, falseFillColor0, falseFillColor1, fillColor0, fillColor1);
if (!cache[key]) {
var o:Object = cache[key] = {};
// Cross-component styles.
HaloColors.addHaloColors(o, themeColor, fillColor0, fillColor1);
// Tab-specific styles.
o.borderColorDrk1 = ColorUtil.adjustBrightness2(borderColor, 10);
o.falseFillColorBright1 = ColorUtil.adjustBrightness(falseFillColor0, 15);
o.falseFillColorBright2 = ColorUtil.adjustBrightness(falseFillColor1, 15);
}
return cache[key];
}
//--------------------------------------------------------------------------
//
// Constructor
//
//--------------------------------------------------------------------------
/**
* Constructor.
*
* @langversion 3.0
* @playerversion Flash 9
* @playerversion AIR 1.1
* @productversion Flex 3
*/
public function TabSkin() {
super();
}
//--------------------------------------------------------------------------
//
// Overridden properties