Skip to content

Commit

Permalink
removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Oct 6, 2024
1 parent 8a89692 commit 2e3fbd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
1 change: 0 additions & 1 deletion M2/Macaulay2/d/parse.d
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ export LocalQuote := {+Operator:Token, rhs:Token, local:void};
export Binary := {+lhs:ParseTree, Operator:Token, rhs:ParseTree};
export Unary := {+Operator:Token, rhs:ParseTree};
export Postfix:= {+lhs:ParseTree, Operator:Token};
export ArrayParseTree := array(ParseTree);
export Parentheses := {+ left:Token, contents:ParseTree, right:Token };
export EmptyParentheses := {+ left:Token, right:Token };
export dummy := {+position:Position};
Expand Down
24 changes: 0 additions & 24 deletions M2/Macaulay2/d/parser.d
Original file line number Diff line number Diff line change
Expand Up @@ -273,30 +273,6 @@ matcher(left:string):string := (
);
""
);
export varexprlist := {
list:array(ParseTree),
size:int
};
export newvarexprlist(i:int):varexprlist := varexprlist(
new array(ParseTree) len i do provide dummyTree,
0);
needatleast(i:int,v:varexprlist):void := (
if length(v.list) < i then (
v.list = new array(ParseTree) len 2*i do (
foreach e in v.list do provide e;
while true do provide dummyTree;
);
);
);
export (v:varexprlist) << (e:ParseTree) : varexprlist := (
needatleast(v.size + 1,v);
v.list.(v.size) = e;
v.size = v.size + 1;
v
);
export toexprlist(v:varexprlist):ArrayParseTree := (
new array(ParseTree) len v.size do foreach e in v.list do provide e
);
export unaryparen(left:Token,file:TokenFile,prec:int,obeylines:bool):ParseTree := (
rightparen := matcher(left.word.name);
if rightparen == peektoken(file,false).word.name
Expand Down

0 comments on commit 2e3fbd1

Please sign in to comment.