Remove the unused 'parent' param from the function newTerm().

This commit is contained in:
2024-05-11 06:41:06 +02:00
parent 775751c67b
commit 0a9543543d
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -17,11 +17,10 @@ func registerTermConstructor(sym Symbol, constructor termContructor) {
constructorRegistry[sym] = constructor
}
func newTerm(tk *Token, parent *term) (inst *term) {
func newTerm(tk *Token) (inst *term) {
if constructorRegistry != nil {
if construct, exists := constructorRegistry[tk.Sym]; exists {
inst = construct(tk)
inst.setParent(parent)
}
}
return