Skip to content

Commit

Permalink
remove unnecessary walker callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbybp committed Mar 11, 2024
1 parent e9e63a0 commit 38c78a3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pyomo/core/expr/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,14 +1424,6 @@ def exitNode(self, node, data):
def finalizeResult(self, result):
return self._variables

def enterNode(self, node):
pass

def acceptChildResult(self, node, data, child_result, child_idx):
if child_result.__class__ in native_types:
return False, None
return child_result.is_expression_type(), None


def identify_variables(expr, include_fixed=True):
"""
Expand Down

0 comments on commit 38c78a3

Please sign in to comment.