about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-28 14:15:48 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-28 14:25:01 -0800
commit499286566d2b9e3dc951a3fe02287d660634c113 (patch)
treec406749ea67a846efb7d2e1d99b8e53bb95883e1 /src
parentcec57992b7b32cd75f411dcc998ddd7ce7f69b4a (diff)
downloadteliva-499286566d2b9e3dc951a3fe02287d660634c113.tar.gz
inline an unnecessary function
Diffstat (limited to 'src')
-rw-r--r--src/lua.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lua.c b/src/lua.c
index 88e0868..526ce65 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -957,12 +957,6 @@ int load_view_from_editor_state (lua_State *L) {
 }
 
 
-void select_view (lua_State *L) {
-  if (load_view_from_editor_state(L))
-    big_picture_view(L);
-}
-
-
 extern void cleanup_curses (void);
 void developer_mode (lua_State *L) {
   /* clobber the app's ncurses colors; we'll restart the app when we rerun it. */
@@ -971,7 +965,8 @@ void developer_mode (lua_State *L) {
   for (int i = 0; i < 8; ++i)
     init_pair(i+8, -1, i);
   nodelay(stdscr, 0);
-  select_view(L);
+  if (load_view_from_editor_state(L))
+    big_picture_view(L);
   cleanup_curses();
   execv(Argv[0], Argv);
   /* never returns */