From: est31 Date: Sat, 29 Aug 2015 23:17:03 +0000 (+0200) Subject: l_mainmenu.h: remove unused l_get_dirlist function X-Git-Tag: 0.4.14~748 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9c44aace4fce5f4b496201214d3215899f1481c3;p=oweals%2Fminetest.git l_mainmenu.h: remove unused l_get_dirlist function The commit 8f9af57314f71aae1cc77e13f9996e13015d776d "Add core.get_dir_list" by @ShadowNinja has removed the implementation of the l_get_dirlist function and all its usages from the l_mainmenu.cpp file, but hasn't removed it from the header file. The reason why this hasn't been detected earlier is that C++ has this interesting feature to still make it possible to create instances of classes whose never used private methods are declared but not defined. --- diff --git a/src/script/lua_api/l_mainmenu.h b/src/script/lua_api/l_mainmenu.h index 9c1fed272..405af25e8 100644 --- a/src/script/lua_api/l_mainmenu.h +++ b/src/script/lua_api/l_mainmenu.h @@ -119,8 +119,6 @@ private: static int l_get_texturepath_share(lua_State *L); - static int l_get_dirlist(lua_State *L); - static int l_create_dir(lua_State *L); static int l_delete_dir(lua_State *L);