mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 00:30:58 +00:00
remove unused functions
This commit is contained in:
parent
2e4af41c70
commit
1815556e4e
1 changed files with 0 additions and 20 deletions
|
@ -78,14 +78,6 @@ _GSBezierEval(_GSBezierDesc *b, float t)
|
|||
return b->a[0] + t * (b->a[1] + t * (b->a[2] + t * b->a[3]));
|
||||
}
|
||||
|
||||
static inline float
|
||||
_GSBezierDerivEval(_GSBezierDesc *b, float t)
|
||||
{
|
||||
if (!b->areCoefficientsComputed)
|
||||
_GSBezierComputeCoefficients(b);
|
||||
return b->a[1] + t * (2.0 * b->a[2] + t * 3.0 * b->a[3]);
|
||||
}
|
||||
|
||||
static inline void
|
||||
_GSRationalBezierComputeBezierDesc(_GSRationalBezierDesc *rb)
|
||||
{
|
||||
|
@ -106,18 +98,6 @@ _GSRationalBezierEval(_GSRationalBezierDesc *rb, float t)
|
|||
return _GSBezierEval(&(rb->n), t) / _GSBezierEval(&(rb->d), t);
|
||||
}
|
||||
|
||||
static inline float
|
||||
_GSRationalBezierDerivEval(_GSRationalBezierDesc *rb, float t)
|
||||
{
|
||||
float h;
|
||||
if (!rb->areBezierDescComputed)
|
||||
_GSRationalBezierComputeBezierDesc(rb);
|
||||
h = _GSBezierEval(&(rb->d), t);
|
||||
return (_GSBezierDerivEval(&(rb->n), t) * h
|
||||
- _GSBezierEval (&(rb->n), t) * _GSBezierDerivEval(&(rb->d), t))
|
||||
/ (h*h);
|
||||
}
|
||||
|
||||
static
|
||||
_NSAnimationCurveDesc _gs_animationCurveDesc[] =
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue