sw_engine: prevent warning

Remove unused version of SUBPIXELS().
This commit is contained in:
Mira Grudzinska 2025-01-03 00:40:41 +01:00 committed by Hermet Park
parent defec5e43b
commit acc614ab2f

View file

@ -277,11 +277,6 @@ static inline SwPoint SUBPIXELS(const SwPoint& pt)
}
static inline SwCoord SUBPIXELS(const SwCoord x)
{
return SwCoord(((unsigned long) x) << PIXEL_BITS);
}
/*
* Approximate sqrt(x*x+y*y) using the `alpha max plus beta min'
* algorithm. We use alpha = 1, beta = 3/8, giving us results with a