diff --git a/elaborate.cc b/elaborate.cc index 95effd6ea..fa0b99768 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -3812,7 +3812,6 @@ NetProc* PCallTask::elaborate_method_(Design*des, NetScope*scope, use_path.pop_back(); NetNet *net; - ivl_type_t cls_val = 0; const NetExpr *par; ivl_type_t par_type = 0; NetEvent *eve; @@ -3838,7 +3837,7 @@ NetProc* PCallTask::elaborate_method_(Design*des, NetScope*scope, // resolve to a class object. Note that the "this" symbol // (internally represented as "@") is handled by there being a // "this" object in the instance scope. - symbol_search(this, des, scope, use_path, net, par, eve, par_type, cls_val); + symbol_search(this, des, scope, use_path, net, par, eve, par_type); if (net == 0) return 0; diff --git a/netmisc.h b/netmisc.h index c523b4e61..1eab095e7 100644 --- a/netmisc.h +++ b/netmisc.h @@ -136,8 +136,7 @@ extern NetScope* symbol_search(const LineInfo*li, NetNet*&net, /* net/reg */ const NetExpr*&par,/* parameter/expr */ NetEvent*&eve, /* named event */ - ivl_type_t&par_type, - ivl_type_t&cls_val); + ivl_type_t&par_type); inline NetScope* symbol_search(const LineInfo*li, Design*des, @@ -148,9 +147,8 @@ inline NetScope* symbol_search(const LineInfo*li, NetEvent*&eve /* named event */) { ivl_type_t par_type; - ivl_type_t cls_val; return symbol_search(li, des, start, path, net, par, eve, - par_type, cls_val); + par_type); } /* diff --git a/symbol_search.cc b/symbol_search.cc index b7e3df15b..d62d2b68c 100644 --- a/symbol_search.cc +++ b/symbol_search.cc @@ -311,14 +311,12 @@ NetScope*symbol_search(const LineInfo*li, Design*des, NetScope*scope, NetNet*&net, const NetExpr*&par, NetEvent*&eve, - ivl_type_t&par_type, - ivl_type_t&cls_val) + ivl_type_t&par_type) { symbol_search_results recurse; bool flag = symbol_search(li, des, scope, path, &recurse); net = 0; - cls_val = 0; par = 0; par_type = 0; eve = 0; @@ -335,7 +333,6 @@ NetScope*symbol_search(const LineInfo*li, Design*des, NetScope*scope, // Convert the extended results to the compatible results. net = recurse.net; - cls_val = recurse.cls_val; par = recurse.par_val; par_type = recurse.type; eve = recurse.eve;