Skip to content

Commit

Permalink
Revert changes to setting.cc
Browse files Browse the repository at this point in the history
Leaked from testing for unrelated issue.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
  • Loading branch information
Caellian committed Apr 11, 2024
1 parent 73ecb77 commit dc0e056
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/setting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ int config_setting_base::config__newindex(lua::state *l) {

l->pushvalue(-2);
l->rawget(-4);

process_setting(*l, false);

return 0;
Expand Down Expand Up @@ -248,33 +247,8 @@ void config_setting_base::make_conky_config(lua::state &l) {

++s;
}

} // namespace priv

static void dumpstack(lua::state &l) {
int top = l.gettop();
for (int i = 1; i <= top; i++) {
printf("%d\t%s\t", i, l.type_name(l.type(i)));
switch (l.type(i)) {
case LUA_TNUMBER:
printf("%g\n", l.tonumber(i));
break;
case LUA_TSTRING:
printf("%s\n", l.tostring(i));
break;
case LUA_TBOOLEAN:
printf("%s\n", (l.toboolean(i) ? "true" : "false"));
break;
case LUA_TNIL:
printf("%s\n", "nil");
break;
default:
printf("%p\n", l.touserdata(i));
break;
}
}
}

void set_config_settings(lua::state &l) {
lua::stack_sentry s(l);
l.checkstack(6);
Expand Down

0 comments on commit dc0e056

Please sign in to comment.