mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
removal of can't-actually-be-executed code
This commit is contained in:
parent
9fbbcaad8f
commit
2ec2e1e7d7
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue