Skip to content

Commit

Permalink
Remove setupfun(string, unop)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Sep 7, 2024
1 parent 0a0ea7b commit f302dd1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions M2/Macaulay2/d/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ export setup(e:SymbolClosure,fn:ternop):void := (
export setup(e:SymbolClosure,fn:multop):void := (
multopNameList = multopNameListCell(fn,e.symbol,multopNameList);
);
export setupfun(name:string,fun:unop):Symbol := (
word := makeUniqueWord(name,
parseinfo(precSpace,precSpace,precSpace,parsefuns(unaryop, defaultbinary)));
entry := makeSymbol(word,dummyPosition,globalDictionary);
unopNameList = unopNameListCell(fun,entry,unopNameList);
entry.unary = fun;
entry.Protected = true;
entry);
export setupfun(name:string, value:function(Expr):Expr):Symbol := (
word := makeUniqueWord(name,parseWORD);
entry := makeSymbol(word,dummyPosition,globalDictionary);
Expand Down

0 comments on commit f302dd1

Please sign in to comment.