remove leftover dead code

master
Daniel Kolesa 2021-03-27 00:32:27 +01:00
parent a37eb25d1c
commit a24f7c9385
2 changed files with 1 additions and 10 deletions

View File

@ -328,10 +328,6 @@ lookupid:
auto fmt = static_cast<command_impl *>(id)->get_args();
for (char c: fmt) {
switch (c) {
case 'S':
gs.gen_str();
numargs++;
break;
case 's':
gs.gen_str(std::string_view{});
numargs++;
@ -353,7 +349,6 @@ lookupid:
numargs++;
break;
case 'E':
case 'T':
case 't':
gs.gen_null();
numargs++;

View File

@ -56,7 +56,7 @@ struct codegen_state {
std::string_view get_word();
void gen_str(std::string_view word) {
void gen_str(std::string_view word = std::string_view{}) {
if (word.size() <= 3) {
std::uint32_t op = BC_INST_VAL_INT | BC_RET_STRING;
for (size_t i = 0; i < word.size(); ++i) {
@ -78,10 +78,6 @@ struct codegen_state {
code.push_back(u);
}
void gen_str() {
code.push_back(BC_INST_VAL_INT | BC_RET_STRING);
}
void gen_null() {
code.push_back(BC_INST_VAL_INT | BC_RET_NULL);
}