From 70fdd2ed1a7c0c2ac9607e8018117e10eb184076 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 14 Jun 2014 16:17:59 +0100 Subject: [PATCH] Removed redundant graphics funcs and graphics.h --- doc/files.md | 1 - src/graphics.c | 13 ------------- src/graphics.h | 14 -------------- src/main.c | 3 --- 4 files changed, 31 deletions(-) delete mode 100644 src/graphics.h diff --git a/doc/files.md b/doc/files.md index ee1040d..d56b1f5 100644 --- a/doc/files.md +++ b/doc/files.md @@ -12,7 +12,6 @@ luaobj.c | Helper functions for lua udata objects love.c | The core `love` module system.c | `love.system` module timer.c | `love.timer` module -graphics.h | `love.graphics` prototype and typedefs graphics.c | `love.graphics` module keyboard.h | `love.keyboard` prototype and typedefs keyboard.c | `love.keyboard` module and keyboard interrupt handling diff --git a/src/graphics.c b/src/graphics.c index a5565c1..a9aaf3d 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -26,19 +26,6 @@ int graphics_flip = 0; -void graphics_init(void) { -} - - -void graphics_deinit(void) { -} - - -/** - * Lua binds - */ - - int l_graphics_getDimensions(lua_State *L) { lua_pushinteger(L, graphics_screen->width); lua_pushinteger(L, graphics_screen->height); diff --git a/src/graphics.h b/src/graphics.h deleted file mode 100644 index 68c0779..0000000 --- a/src/graphics.h +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) 2014 rxi - * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the MIT license. See LICENSE for details. - */ - -#ifndef GRAPHICS_H -#define GRAPHICS_H - -void graphics_init(void); -void graphics_deinit(void); - -#endif diff --git a/src/main.c b/src/main.c index 38cb92c..bb1fd41 100644 --- a/src/main.c +++ b/src/main.c @@ -14,7 +14,6 @@ #include "lib/dmt/dmt.h" #include "vga.h" #include "luaobj.h" -#include "graphics.h" #include "keyboard.h" #include "image.h" @@ -24,7 +23,6 @@ static lua_State *L; static void deinit(void) { /* Deinit and clear up everything. Called at exit */ vga_deinit(); - graphics_deinit(); keyboard_deinit(); lua_close(L); dmt_dump(stdout); @@ -38,7 +36,6 @@ int main(void) { /* Init everything */ atexit(deinit); vga_init(); - graphics_init(); keyboard_init(); /* Init lua */