Removed debugging statements

This commit is contained in:
Alessandro Ranellucci 2015-12-16 13:11:41 +01:00
parent e381100812
commit 3ec3aaf960

View file

@ -80,9 +80,6 @@ SV*
ConfigOption_to_SV(const ConfigOption &opt, const ConfigOptionDef &def) { ConfigOption_to_SV(const ConfigOption &opt, const ConfigOptionDef &def) {
if (def.type == coFloat) { if (def.type == coFloat) {
const ConfigOptionFloat* optv = dynamic_cast<const ConfigOptionFloat*>(&opt); const ConfigOptionFloat* optv = dynamic_cast<const ConfigOptionFloat*>(&opt);
if (optv == NULL) {
printf("opt_key = %s\n", def.label.c_str());
}
return newSVnv(optv->value); return newSVnv(optv->value);
} else if (def.type == coFloats) { } else if (def.type == coFloats) {
const ConfigOptionFloats* optv = dynamic_cast<const ConfigOptionFloats*>(&opt); const ConfigOptionFloats* optv = dynamic_cast<const ConfigOptionFloats*>(&opt);
@ -96,9 +93,6 @@ ConfigOption_to_SV(const ConfigOption &opt, const ConfigOptionDef &def) {
return newSVnv(optv->value); return newSVnv(optv->value);
} else if (def.type == coInt) { } else if (def.type == coInt) {
const ConfigOptionInt* optv = dynamic_cast<const ConfigOptionInt*>(&opt); const ConfigOptionInt* optv = dynamic_cast<const ConfigOptionInt*>(&opt);
if (optv == NULL) {
printf("opt_key = %s\n", def.label.c_str());
}
return newSViv(optv->value); return newSViv(optv->value);
} else if (def.type == coInts) { } else if (def.type == coInts) {
const ConfigOptionInts* optv = dynamic_cast<const ConfigOptionInts*>(&opt); const ConfigOptionInts* optv = dynamic_cast<const ConfigOptionInts*>(&opt);
@ -130,9 +124,6 @@ ConfigOption_to_SV(const ConfigOption &opt, const ConfigOptionDef &def) {
return newRV_noinc((SV*)av); return newRV_noinc((SV*)av);
} else if (def.type == coBool) { } else if (def.type == coBool) {
const ConfigOptionBool* optv = dynamic_cast<const ConfigOptionBool*>(&opt); const ConfigOptionBool* optv = dynamic_cast<const ConfigOptionBool*>(&opt);
if (optv == NULL) {
printf("opt_key = %s\n", def.label.c_str());
}
return newSViv(optv->value ? 1 : 0); return newSViv(optv->value ? 1 : 0);
} else if (def.type == coBools) { } else if (def.type == coBools) {
const ConfigOptionBools* optv = dynamic_cast<const ConfigOptionBools*>(&opt); const ConfigOptionBools* optv = dynamic_cast<const ConfigOptionBools*>(&opt);