Remove unused functions from COLOR4D

This commit is contained in:
Ian McInerney 2023-02-22 00:54:39 +00:00
parent bcb93e9aa7
commit 0ba116a3ee
2 changed files with 1 additions and 32 deletions

View File

@ -227,8 +227,6 @@ wxColour COLOR4D::ToColour() const
return colour;
}
#endif
COLOR4D COLOR4D::LegacyMix( const COLOR4D& aColor ) const
{
@ -244,24 +242,7 @@ COLOR4D COLOR4D::LegacyMix( const COLOR4D& aColor ) const
return candidate;
}
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;
}
#endif
namespace KIGFX {

View File

@ -182,18 +182,6 @@ public:
* @param aColor The color to mix with this one
*/
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 */