kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=e5b71f40f3bc93df35fdc7efcabfe306a221c668

commit e5b71f40f3bc93df35fdc7efcabfe306a221c668
Author: Kim Woelders <[email protected]>
Date:   Thu Jan 8 21:03:25 2015 +0100

    Remove unused AnimatorsDelCat().
---
 src/animation.c | 38 --------------------------------------
 src/animation.h |  8 +-------
 2 files changed, 1 insertion(+), 45 deletions(-)

diff --git a/src/animation.c b/src/animation.c
index 1070a3c..4bd7f70 100644
--- a/src/animation.c
+++ b/src/animation.c
@@ -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)
 {
diff --git a/src/animation.h b/src/animation.h
index 5f96eb4..621ef43 100644
--- a/src/animation.h
+++ b/src/animation.h
@@ -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);
 

-- 


Reply via email to