removal of can't-actually-be-executed code

This commit is contained in:
Vern Paxson 2021-06-04 16:54:11 -07:00
parent 9fbbcaad8f
commit 2ec2e1e7d7

View file

@ -483,12 +483,6 @@ string CPPCompile::GenSizeExpr(const Expr* e, GenType gt)
else if ( it == TYPE_INTERNAL_DOUBLE ) else if ( it == TYPE_INTERNAL_DOUBLE )
gen = string("fabs__CPP(") + gen + ")"; gen = string("fabs__CPP(") + gen + ")";
else if ( it == TYPE_INTERNAL_INT || it == TYPE_INTERNAL_DOUBLE )
{
auto cast = (it == TYPE_INTERNAL_INT) ? "bro_int_t" : "double";
gen = string("abs__CPP(") + cast + "(" + gen + "))";
}
else else
return GenericValPtrToGT(gen + "->SizeVal()", t, gt); return GenericValPtrToGT(gen + "->SizeVal()", t, gt);