Mercurial > molko
diff libcore/core/error.c @ 169:eb0a7ab71023
misc: extreme cleanup, closes #2506
While here, remove unneeded stuff.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 20 Oct 2020 17:39:13 +0200 |
parents | aab824406d3d |
children |
line wrap: on
line diff
--- a/libcore/core/error.c Tue Oct 20 15:09:39 2020 +0200 +++ b/libcore/core/error.c Tue Oct 20 17:39:13 2020 +0200 @@ -17,13 +17,9 @@ */ #include <assert.h> -#include <errno.h> #include <stdio.h> -#include <stdlib.h> -#include <string.h> #include "error.h" -#include "error_p.h" #include <SDL.h> @@ -58,21 +54,3 @@ return false; } - -bool -error_errno(void) -{ - errorf("%s", strerror(errno)); - - return false; -} - -/* private: error_p.h */ - -bool -error_sdl(void) -{ - errorf("%s", SDL_GetError()); - - return false; -}