diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-13 16:12:05 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-13 16:13:05 -0800 |
commit | 998e666958e1b4ab8d1213c8bd5bf49f14605c6a (patch) | |
tree | 7615f21ccd28a4803222d9b0c9623fdd96f0929b | |
parent | 5bf5e4707735724033dc496acee80d59df324269 (diff) | |
download | teliva-998e666958e1b4ab8d1213c8bd5bf49f14605c6a.tar.gz |
.
-rw-r--r-- | src/lua.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lua.c b/src/lua.c index 1a85939..2000c0f 100644 --- a/src/lua.c +++ b/src/lua.c @@ -309,15 +309,6 @@ static int handle_image (lua_State *L, char **argv, int n) { } -static int definition_exists (lua_State *L, char *name) { - lua_getglobal(L, "teliva_program"); - lua_getfield(L, -1, name); - const char *contents = lua_tostring(L, -1); - lua_pop(L, 1); - return contents != NULL; -} - - char *Current_definition = NULL; void save_to_current_definition_and_editor_buffer (lua_State *L, char *definition) { Current_definition = definition; |