Bug 1208937 - Remove gfxPattern::GraphicsPatternType. r=jwatt.

This is easy because the only remaining uses occur in uncalled functions, which
can be removed.

--HG--
extra : rebase_source : 7c1ec2c175a8a73f1ce2375c3231891ecc6bfb22
This commit is contained in:
Nicholas Nethercote 2015-09-27 20:38:20 -07:00
parent bc525759f2
commit 5930cc971e
3 changed files with 0 additions and 30 deletions

View File

@ -106,21 +106,6 @@ inline ExtendMode ToExtendMode(gfxPattern::GraphicsExtend aExtend)
}
}
inline gfxPattern::GraphicsPatternType
ThebesPatternType(PatternType aType)
{
switch (aType) {
case PatternType::SURFACE:
return gfxPattern::PATTERN_SURFACE;
case PatternType::LINEAR_GRADIENT:
return gfxPattern::PATTERN_LINEAR;
case PatternType::RADIAL_GRADIENT:
return gfxPattern::PATTERN_RADIAL;
default:
return gfxPattern::PATTERN_SOLID;
}
}
inline gfxPattern::GraphicsExtend ThebesExtend(ExtendMode aExtend)
{
switch (aExtend) {

View File

@ -219,12 +219,6 @@ gfxPattern::GetSolidColor(Color& aColorOut)
return false;
}
gfxPattern::GraphicsPatternType
gfxPattern::GetType() const
{
return ThebesPatternType(mGfxPattern.GetPattern()->GetType());
}
int
gfxPattern::CairoStatus()
{

View File

@ -74,15 +74,6 @@ public:
void SetExtend(GraphicsExtend extend);
GraphicsExtend Extend() const;
enum GraphicsPatternType {
PATTERN_SOLID,
PATTERN_SURFACE,
PATTERN_LINEAR,
PATTERN_RADIAL
};
GraphicsPatternType GetType() const;
int CairoStatus();
void SetFilter(GraphicsFilter filter);