Remove returned timing window table

This commit is contained in:
teejusb
2022-01-05 18:21:28 -08:00
parent 99ee1f2b84
commit a48a5b73ad
3 changed files with 13 additions and 28 deletions
-10
View File
@@ -2046,16 +2046,6 @@ public:
// Insert the specified TimingWindow into the disabled windows set.
p->m_twDisabledWindows.set(Enum::Check<TimingWindow>(L, 1));
}
// Construct a new table indicating all of the disabled windows.
lua_newtable( L );
int j = 0;
for (int i=TW_W1; i != TW_W5; ++i) {
if (p->m_twDisabledWindows[i]) {
Enum::Push(L, static_cast<TimingWindow>(i));
lua_rawseti( L, -2, j+1 );
++j;
}
}
OPTIONAL_RETURN_SELF(original_top);
return 1;
}