Remove unused AnimatorsDelCat().
This commit is contained in:
parent
168ef48fbc
commit
e5b71f40f3
|
@ -400,44 +400,6 @@ AnimatorDel(EObj * eo, Animator * anx)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
AnimatorsDelCat(EObj * eo, animation_category category, int complete)
|
||||
{
|
||||
Animator *an;
|
||||
int accum = 0;
|
||||
|
||||
Dprintf("%s: cat=%d?\n", __func__, category);
|
||||
|
||||
for (an = (eo) ? eo->animations : global_animators; an; an = an->next)
|
||||
{
|
||||
if (an->category == category && !an->cancelled)
|
||||
{
|
||||
Dprintf("... %p: complete=%d\n", an, complete);
|
||||
an->cancelled = 1 + complete;
|
||||
accum++;
|
||||
}
|
||||
}
|
||||
return accum;
|
||||
}
|
||||
|
||||
#if 0 /* Unused */
|
||||
int
|
||||
AnimatorsDelCatAll(animation_category category, int complete)
|
||||
{
|
||||
EObj *const *lst;
|
||||
int num, i, accum;
|
||||
|
||||
accum = AnimatorsDelCat(NULL, category, complete);
|
||||
lst = EobjListStackGet(&num);
|
||||
|
||||
for (i = 0; i < num; i++)
|
||||
{
|
||||
accum += AnimatorsDelCat(lst[i], category, complete);
|
||||
}
|
||||
return accum;
|
||||
}
|
||||
#endif
|
||||
|
||||
static unsigned int
|
||||
_FrameNum(void)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2012 Daniel Manjarres
|
||||
* Copyright (C) 2012-2014 Kim Woelders
|
||||
* Copyright (C) 2012-2015 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -85,12 +85,6 @@ void AnimatorSetSound(Animator * an,
|
|||
void AnimatorSetDoneFunc(Animator * an, AnimDoneFunc * done);
|
||||
|
||||
int AnimatorDel(EObj * eo, Animator * an);
|
||||
int AnimatorsDelCat(EObj * eo, animation_category category,
|
||||
int complete);
|
||||
#if 0 /* Unused */
|
||||
int AnimatorsDelCatAll(animation_category category,
|
||||
int complete);
|
||||
#endif
|
||||
|
||||
void AnimatorsFree(EObj * eo);
|
||||
|
||||
|
|
Loading…
Reference in New Issue