1. Carl Friedrich Bolz
  2. Pyrolog

Commits

Carl Friedrich Bolz  committed bdb6030

kill unused argument

  • Participants
  • Parent commits 219984e
  • Branches default

Comments (0)

Files changed (1)

File prolog/interpreter/term.py

View file
  • Ignore whitespace
             for x in arg_iter:
                 setattr(self, 'val_%d' % x, args[x])
 
-        def _make_new(self, name, signature, mutable=False):
+        def _make_new(self, name, signature):
             raise NotImplementedError("abstract base class")
         _make_new_mutable = _make_new
 
             assert args is None or len(args) == n_args
             assert self.name() == term_name
 
-        def _make_new(self, name, signature, mutable=False):
+        def _make_new(self, name, signature):
             cls = generic_callable
             return cls(name, None, signature)
 
         if immutable:
-            def _make_new_mutable(self, name, signature, mutable=False):
+            def _make_new_mutable(self, name, signature):
                 cls = mutable_version
                 return cls(name, None, signature)
         else: