mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
Remove Func::AsScriptFunc() methods
Not used frequently enough, so possibly better to minimize leakage of details from non-detail API.
This commit is contained in:
parent
4824da0325
commit
70ff4ef678
4 changed files with 8 additions and 12 deletions
|
@ -146,10 +146,10 @@ TraversalCode ProfileFunc::PreExpr(const Expr* e)
|
|||
if ( func_v )
|
||||
{
|
||||
auto func_vf = func_v->AsFunc();
|
||||
auto bf = func_vf->AsScriptFunc();
|
||||
|
||||
if ( bf )
|
||||
if ( func_vf->GetKind() == Func::SCRIPT_FUNC )
|
||||
{
|
||||
auto bf = static_cast<ScriptFunc*>(func_vf);
|
||||
script_calls.insert(bf);
|
||||
|
||||
if ( in_when )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue