Remove unused AnimatorsDelCat().

This commit is contained in:
Kim Woelders 2015-01-08 21:03:25 +01:00
parent 168ef48fbc
commit e5b71f40f3
2 changed files with 1 additions and 45 deletions

View File

@ -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)
{

View File

@ -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);