Remove unused functions from COLOR4D
This commit is contained in:
parent
bcb93e9aa7
commit
0ba116a3ee
|
@ -227,8 +227,6 @@ wxColour COLOR4D::ToColour() const
|
||||||
return colour;
|
return colour;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
COLOR4D COLOR4D::LegacyMix( const COLOR4D& aColor ) const
|
COLOR4D COLOR4D::LegacyMix( const COLOR4D& aColor ) const
|
||||||
{
|
{
|
||||||
|
@ -244,24 +242,7 @@ COLOR4D COLOR4D::LegacyMix( const COLOR4D& aColor ) const
|
||||||
|
|
||||||
return candidate;
|
return candidate;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned int COLOR4D::ToU32() const
|
|
||||||
{
|
|
||||||
return ToColour().GetRGB();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void COLOR4D::FromU32( unsigned int aPackedColor )
|
|
||||||
{
|
|
||||||
wxColour c;
|
|
||||||
c.SetRGB( aPackedColor );
|
|
||||||
r = c.Red() / 255.0;
|
|
||||||
g = c.Green() / 255.0;
|
|
||||||
b = c.Blue() / 255.0;
|
|
||||||
a = c.Alpha() / 255.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
namespace KIGFX {
|
namespace KIGFX {
|
||||||
|
|
||||||
|
|
|
@ -182,18 +182,6 @@ public:
|
||||||
* @param aColor The color to mix with this one
|
* @param aColor The color to mix with this one
|
||||||
*/
|
*/
|
||||||
COLOR4D LegacyMix( const COLOR4D& aColor ) const;
|
COLOR4D LegacyMix( const COLOR4D& aColor ) const;
|
||||||
|
|
||||||
/**
|
|
||||||
* Packs the color into an unsigned int for compatibility with legacy canvas.
|
|
||||||
*
|
|
||||||
* @note This is a lossy downsampling and also that the alpha channel is lost.
|
|
||||||
*/
|
|
||||||
unsigned int ToU32() const;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Unpack from a unsigned int in the legacy EDA_COLOR_T format.
|
|
||||||
*/
|
|
||||||
void FromU32( unsigned int aPackedColor );
|
|
||||||
#endif /* WX_COMPATIBILITY */
|
#endif /* WX_COMPATIBILITY */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue