forked from github/server
unused variable, bad version check
This commit is contained in:
parent
5e631fd145
commit
1201a6b739
|
@ -209,7 +209,6 @@ static int tolua_setkey(lua_State * L)
|
||||||
const char *name = tolua_tostring(L, 1, 0);
|
const char *name = tolua_tostring(L, 1, 0);
|
||||||
int value = tolua_toboolean(L, 2, 0);
|
int value = tolua_toboolean(L, 2, 0);
|
||||||
int flag = atoi36(name);
|
int flag = atoi36(name);
|
||||||
bool isset = key_get(global.attribs, flag);
|
|
||||||
if (value) {
|
if (value) {
|
||||||
key_set(&global.attribs, flag);
|
key_set(&global.attribs, flag);
|
||||||
}
|
}
|
||||||
|
|
|
@ -578,11 +578,12 @@ const struct locale *lang)
|
||||||
}
|
}
|
||||||
|
|
||||||
int read_attribs(storage *store, attrib **alist, void *owner) {
|
int read_attribs(storage *store, attrib **alist, void *owner) {
|
||||||
#if RELEASE_VERSION < ATHASH_VERSION
|
if (global.data_version < ATHASH_VERSION) {
|
||||||
return a_read_orig(store, alist, owner);
|
return a_read_orig(store, alist, owner);
|
||||||
#else
|
}
|
||||||
|
else {
|
||||||
return a_read(store, alist, owner);
|
return a_read(store, alist, owner);
|
||||||
#endif
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_attribs(storage *store, attrib *alist, const void *owner)
|
void write_attribs(storage *store, attrib *alist, const void *owner)
|
||||||
|
|
Loading…
Reference in New Issue