Skip to content

Commit

Permalink
Remove setup(SymbolClosure,unop); identical to setupop
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Sep 7, 2024
1 parent 857b262 commit 9a31b71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion M2/Macaulay2/d/actors.d
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ export notFun(rhs:Code):Expr := (
else if a == True then False
else if a == False then True
else unarymethod(a,notS));
setup(notS,notFun);
setupop(notS,notFun);
EqualEqualEqualfun(lhs:Code,rhs:Code):Expr := (
-- # typical value: symbol ===, Thing, Thing, Boolean
x := eval(lhs);
Expand Down
4 changes: 0 additions & 4 deletions M2/Macaulay2/d/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ export setup(word:Word,fun1:unop,fun2:binop):void := (
e.unary = fun1;
e.binary = fun2;
);
export setup(e:SymbolClosure,fn:unop):void := (
unopNameList = unopNameListCell(fn,e.symbol,unopNameList);
e.symbol.unary = fn;
);
export setuppostfix(e:SymbolClosure,fn:unop):void := (
unopNameList = unopNameListCell(fn,e.symbol,unopNameList);
e.symbol.postfix = fn;
Expand Down

0 comments on commit 9a31b71

Please sign in to comment.