diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-04-15 15:08:19 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-04-15 15:08:19 -0700 |
commit | 1aa0a3f7429684badde1e0c179c5a870a632fb75 (patch) | |
tree | 1a0d04b007199485eb8b3b17d6b41c21e803cbbe | |
parent | fb037d58553452bf50a462bc83382be8f86b3a21 (diff) |
game: remove some unused/dead code
vestigial from mal
-rw-r--r-- | src/game.c | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -16,7 +16,6 @@ #include <SDL.h> #include <SDL_mixer.h> -#include <stdarg.h> /* vsnprintf */ #include "aabb.h" #include "whale.h" @@ -112,37 +111,6 @@ void whale_game_event(whale_t *whale, SDL_Event *ev) } } -#if 0 -stage_node_t * text_node(stage_t *stage, stage_node_t *node, const char *name, int layer, aabb_t aabb, int width, int height, int x, int y, const char *anchor, int font_size, const char *fmt, ...) -{ - char buf[2048]; - char str[1024]; - va_list ap; - - va_start(ap, fmt); - vsnprintf(str, sizeof(str), fmt, ap); - va_end(ap); - - snprintf(buf, sizeof(buf), - "<svg width=\"%i\" height=\"%i\"><g><text x=\"%i\" y=\"%i\" style=\"font-size:%i\" text-anchor=\"%s\">%s</text></g></svg>", - width, height, x, y, font_size, anchor, str); - if (!node) { - node = svg_node_new_buffer(stage, name, buf, strlen(buf), layer, aabb); - fatal_if(!node, "Unable to create quesiton svg \"%s\"", name); - } else { - svg_node_replace_buffer(stage, node, name, buf, strlen(buf)); - } - - return node; -} -#endif - - -stage_node_t * meter_node(stage_t *stage, const aabb_t aabb, float level) -{ - /* TODO: power meter */ -} - void whale_game_update(whale_t *whale) { |