mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
|
@ -175,11 +175,13 @@ ExprPtr Inliner::CheckForInlining(IntrusivePtr<CallExpr> c)
|
|||
if ( ! func_v )
|
||||
return c;
|
||||
|
||||
auto func_vf = func_v->AsFunc()->AsScriptFunc();
|
||||
auto function = func_v->AsFunc();
|
||||
|
||||
if ( ! func_vf )
|
||||
if ( function->GetKind() != Func::SCRIPT_FUNC )
|
||||
return c;
|
||||
|
||||
auto func_vf = static_cast<ScriptFunc*>(function);
|
||||
|
||||
if ( inline_ables.count(func_vf) == 0 )
|
||||
return c;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue