From 788d7005dc1821763cf3783efcc305af4552211b Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sat, 11 Jun 2011 09:44:51 -0400 Subject: [PATCH] Remove commented code, add comment. Need a warning expert on this one. --- src/ModIconRow.cpp | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/src/ModIconRow.cpp b/src/ModIconRow.cpp index 362c5a8e4d..b2e3c68fd1 100644 --- a/src/ModIconRow.cpp +++ b/src/ModIconRow.cpp @@ -72,30 +72,12 @@ struct OptionColumnEntry //void FromStack( lua_State *L, int iPos ); }; -/* -void OptionColumnEntry::FromStack( lua_State *L, int iPos ) -{ - if( lua_type(L, iPos) != LUA_TTABLE ) - return; - - lua_pushvalue( L, iPos ); - const int iTab = lua_gettop( L ); - - // option name - lua_getfield( L, iTab, "Name" ); - RString sName = lua_tostring( L, -1 ); - szString = const_cast(sName.c_str()); - lua_settop( L, iTab ); - - // option icon index - lua_getfield( L, iTab, "IconIndex" ); - iSlotIndex = lua_tointeger( L, -1 ); - lua_settop( L, iTab ); -} -static vector g_OptionColumnEntries; -*/ - // todo: metric these? -aj +/* + * May be a good idea to do so at some point. GCC gives plenty of warnings + * About the code below, something about turning string constants into + * char * items. Gotta love the many compilers we use. -Wolfman2000 + */ static const OptionColumnEntry g_OptionColumnEntries[] = { {"Boost", 0},