micro refactor

This commit is contained in:
MihailRis 2024-10-02 20:24:50 +03:00
parent 4e692d93b2
commit 5ff00df527
2 changed files with 1 additions and 6 deletions

View File

@ -11,8 +11,7 @@
namespace data {
enum class FieldType {
I8=0, I16, I32, I64, F32, F64, CHAR,
COUNT
I8=0, I16, I32, I64, F32, F64, CHAR
};
inline std::string to_string(FieldType type) {

View File

@ -457,8 +457,6 @@ static int get_field(
case data::FieldType::CHAR:
return lua::pushstring(L,
std::string(dataStruct.getChars(src, field)).c_str());
case data::FieldType::COUNT:
return 0;
}
return 0;
}
@ -524,8 +522,6 @@ static int set_field(
case data::FieldType::F64:
dataStruct.setNumber(dst, value.asNumber(), field, index);
break;
case data::FieldType::COUNT:
break;
}
return 0;
}