Skip to content

Commit

Permalink
Remove unused setup functions for 2 unop's (prefix/postfix)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Sep 7, 2024
1 parent 954e44c commit 857b262
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions M2/Macaulay2/d/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ export setup(word:Word,fun1:unop,fun2:binop):void := (
e.unary = fun1;
e.binary = fun2;
);
export setup(word:Word,fun1:unop,fun2:unop):void := (
e := makeSymbol(word,dummyPosition,globalDictionary);
unopNameList = unopNameListCell(fun2,e,unopNameList);
unopNameList = unopNameListCell(fun1,e,unopNameList);
e.unary = fun1;
e.postfix = fun2;
);
export setup(e:SymbolClosure,fn:unop):void := (
unopNameList = unopNameListCell(fn,e.symbol,unopNameList);
e.symbol.unary = fn;
Expand All @@ -94,12 +87,6 @@ export setup(e:SymbolClosure,fun1:unop,fun2:binop):void := (
e.symbol.unary = fun1;
e.symbol.binary = fun2;
);
export setup(e:SymbolClosure,fun1:unop,fun2:unop):void := (
unopNameList = unopNameListCell(fun1,e.symbol,unopNameList);
unopNameList = unopNameListCell(fun2,e.symbol,unopNameList);
e.symbol.unary = fun1;
e.symbol.postfix = fun2;
);
export setupop(s:SymbolClosure,fun:unop):void := (
unopNameList = unopNameListCell(fun,s.symbol,unopNameList);
s.symbol.unary = fun;
Expand Down

0 comments on commit 857b262

Please sign in to comment.