mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
removed some now-obsolete profiling functionality
This commit is contained in:
parent
a85d92b2ee
commit
6cb5ea6835
2 changed files with 0 additions and 16 deletions
|
@ -130,15 +130,6 @@ TraversalCode ProfileFunc::PreStmt(const Stmt* s)
|
|||
|
||||
case STMT_WHEN:
|
||||
++num_when_stmts;
|
||||
|
||||
in_when = true;
|
||||
s->AsWhenStmt()->Cond()->Traverse(this);
|
||||
in_when = false;
|
||||
|
||||
// It doesn't do any harm for us to re-traverse the
|
||||
// conditional, so we don't bother hand-traversing the
|
||||
// rest of the "when", but just let the usual processing
|
||||
// do it.
|
||||
break;
|
||||
|
||||
case STMT_FOR:
|
||||
|
@ -320,9 +311,6 @@ TraversalCode ProfileFunc::PreExpr(const Expr* e)
|
|||
{
|
||||
auto bf = static_cast<ScriptFunc*>(func_vf);
|
||||
script_calls.insert(bf);
|
||||
|
||||
if ( in_when )
|
||||
when_calls.insert(bf);
|
||||
}
|
||||
else
|
||||
BiF_globals.insert(func);
|
||||
|
|
|
@ -260,10 +260,6 @@ protected:
|
|||
// Whether we should treat record field accesses as absolute
|
||||
// (integer offset) or relative (name-based).
|
||||
bool abs_rec_fields;
|
||||
|
||||
// Whether we're separately processing a "when" condition to
|
||||
// mine out its script calls.
|
||||
bool in_when = false;
|
||||
};
|
||||
|
||||
// Function pointer for a predicate that determines whether a given
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue