From 0c4116468c43f63b64c7fba984cf638cbad21749 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Mon, 9 Jun 2014 18:37:47 -0300 Subject: [PATCH] And some more. --- src/modules/keyboard/wrap_Keyboard.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/modules/keyboard/wrap_Keyboard.cpp b/src/modules/keyboard/wrap_Keyboard.cpp index 3b41c18b2..a06a899d4 100644 --- a/src/modules/keyboard/wrap_Keyboard.cpp +++ b/src/modules/keyboard/wrap_Keyboard.cpp @@ -68,27 +68,6 @@ int w_setTextInput(lua_State *L) return 0; } -template -static int throwExcept(lua_State *L, const T& func) -{ - bool should_error = false; - - try - { - func(); - } - catch (love::Exception &e) - { - should_error = true; - lua_pushstring(L, e.what()); - } - - if (should_error) - return luaL_error(L, lua_tostring(L, -1)); - - return 0; -} - int w_hasTextInput(lua_State *L) { luax_pushboolean(L, instance->hasTextInput());