Skip to content

Commit

Permalink
remove unused 'rname' variables from OperatorMsg
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
  • Loading branch information
jeremiah-corrado committed Sep 18, 2024
1 parent 97ea7a4 commit 2e2baaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/BinOp.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ module BinOp
:arg op: string representation of binary operation to execute
:type op: string
:arg rname: name of the `e` in the symbol table
:type rname: string
:arg pn: routine name of callsite function
:type pn: string
Expand Down
8 changes: 2 additions & 6 deletions src/OperatorMsg.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module OperatorMsg
Parse and respond to binopvv message.
vv == vector op vector
:arg reqMsg: request containing (cmd,op,aname,bname,rname)
:arg reqMsg: request containing (cmd,op,aname,bname)
:type reqMsg: string
:arg st: SymTab to act on
Expand Down Expand Up @@ -71,8 +71,6 @@ module OperatorMsg
realOps.add("/");
realOps.add("//");

const rname = st.nextName();

if binop_dtype_a == int && binop_dtype_b == int {
if boolOps.contains(op) {
return doBinOpvv(l, r, bool, op, pn, st);
Expand Down Expand Up @@ -240,8 +238,6 @@ module OperatorMsg
"cmd: %? op: %? left pdarray: %? scalar: %?".format(
cmd,op,st.attrib(msgArgs['a'].val), val));

const rname = st.nextName();

use Set;
// This boolOps set is a filter to determine the output type for the operation.
// All operations that involve one of these operations result in a `bool` symbol
Expand Down Expand Up @@ -1053,7 +1049,7 @@ module OperatorMsg
Parse and respond to opeqvs message.
vector op= scalar
:arg reqMsg: request containing (cmd,op,aname,bname,rname)
:arg reqMsg: request containing (cmd,op,aname,bname)
:type reqMsg: string
:arg st: SymTab to act on
Expand Down

0 comments on commit 2e2baaa

Please sign in to comment.