Просмотр исходного кода

remove unused icon_free method

jblanked 9 месяцев назад
Родитель
Сommit
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);
     free(loaded_data);
 }
 }
 
 
-// -------------- Stop callback --------------
-static void icon_free(Entity *self, GameManager *manager, void *context)
-{
-    UNUSED(self);
-    UNUSED(manager);
-    UNUSED(context);
-}
-
 // -------------- Entity description --------------
 // -------------- Entity description --------------
 const EntityDescription icon_desc = {
 const EntityDescription icon_desc = {
     .start = icon_start,
     .start = icon_start,
-    .stop = icon_free,
+    .stop = NULL,
     .update = NULL,
     .update = NULL,
     .render = icon_render,
     .render = icon_render,
     .collision = icon_collision,
     .collision = icon_collision,