random cleanup

This commit is contained in:
Andrei Alexeyev 2019-11-08 20:53:43 +02:00
parent a6bf08a5bf
commit 383234efe7
No known key found for this signature in database
GPG key ID: 363707CD4C7FE8A4
4 changed files with 1 additions and 9 deletions

View file

@ -337,11 +337,6 @@ void gamepad_shutdown(void) {
events_unregister_handler(gamepad_event_handler);
}
void gamepad_restart(void) {
gamepad_shutdown();
gamepad_init();
}
static float gamepad_axis_sens(GamepadAxis id) {
if(id == config_get_int(CONFIG_GAMEPAD_AXIS_LR))
return config_get_float(CONFIG_GAMEPAD_AXIS_LR_SENS);

View file

@ -98,7 +98,6 @@ enum {
void gamepad_init(void);
void gamepad_shutdown(void);
void gamepad_restart(void);
void gamepad_event(SDL_Event*, EventHandler, EventFlags, void*);
int gamepad_device_count(void);

View file

@ -234,7 +234,7 @@
#define HT_MIN_SIZE 32
#endif
// TODO: static_assert HT_MIN_SIZE is a power of 2
static_assert((HT_MIN_SIZE & (~HT_MIN_SIZE + 1)) == HT_MIN_SIZE, "HT_MIN_SIZE must be power of two");
/*
* The following macros comprise the core of the templating machinery.

View file

@ -47,8 +47,6 @@ typedef enum VideoBackend {
VIDEO_BACKEND_SWITCH,
} VideoBackend;
// TODO make this struct private
typedef enum VideoCapability {
VIDEO_CAP_FULLSCREEN,
VIDEO_CAP_EXTERNAL_RESIZE,