aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/textadept.c
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-03-26 17:49:34 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-03-26 17:49:34 -0400
commitb15fdce187730f285b5f24bd39e1929e3553e7a1 (patch)
tree546d4b58931a82d7f56af47030f3c9b317608823 /src/textadept.c
parent6e508c391e0ea25e6cc3e607738b8acc73793f41 (diff)
Removed accidentally committed experimental function.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 80544d0a..33d2f2ab 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -831,21 +831,6 @@ static int menu(lua_State *L) {
#endif
}
-/** `ui.update()` Lua function. */
-static int update_ui(lua_State *L) {
-#if GTK
- while (gtk_events_pending()) gtk_main_iteration();
-#elif CURSES
- struct timeval timeout = {0, 1e5}; // 0.1s
- int nfds = os_spawn_pushfds(L);
- fd_set *fds = (fd_set *)lua_touserdata(L, -1);
- while (select(nfds, fds, NULL, NULL, &timeout) > 0)
- if (os_spawn_readfds(L) >= 0) refresh_all();
- lua_pop(L, 1); // fd_set
-#endif
- return 0;
-}
-
/** `ui.__index` Lua metamethod. */
static int ui_index(lua_State *L) {
const char *key = lua_tostring(L, 2);
@@ -1608,7 +1593,6 @@ static int init_lua(lua_State *L, int argc, char **argv, int reinit) {
lua_pushcfunction(L, get_split_table), lua_setfield(L, -2, "get_split_table");
lua_pushcfunction(L, goto_view), lua_setfield(L, -2, "goto_view");
lua_pushcfunction(L, menu), lua_setfield(L, -2, "menu");
- lua_pushcfunction(L, update_ui), lua_setfield(L, -2, "update");
set_metatable(L, -1, "ta_ui", ui_index, ui_newindex);
lua_setglobal(L, "ui");