浏览代码

remove unused icon_free method

jblanked 9 月之前
父节点
当前提交
946b5d6bfd
共有 1 个文件被更改,包括 1 次插入9 次删除
  1. 1 9
      game/icon.c

+ 1 - 9
game/icon.c

@@ -75,18 +75,10 @@ static void icon_start(Entity *self, GameManager *manager, void *context)
     free(loaded_data);
 }
 
-// -------------- Stop callback --------------
-static void icon_free(Entity *self, GameManager *manager, void *context)
-{
-    UNUSED(self);
-    UNUSED(manager);
-    UNUSED(context);
-}
-
 // -------------- Entity description --------------
 const EntityDescription icon_desc = {
     .start = icon_start,
-    .stop = icon_free,
+    .stop = NULL,
     .update = NULL,
     .render = icon_render,
     .collision = icon_collision,