Skip to content

Commit

Permalink
Remove copy constructor (toArray is no longer needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-strecker-sonarsource committed Apr 18, 2023
1 parent e65fbda commit 74c570e
Showing 1 changed file with 0 additions and 10 deletions.
Expand Up @@ -52,16 +52,6 @@ private ProgramState()
Exceptions = ImmutableStack<ExceptionState>.Empty;
}

protected ProgramState(ProgramState original) // Custom record override constructor to reset "toArray"
{
OperationValue = original.OperationValue;
SymbolValue = original.SymbolValue;
VisitCount = original.VisitCount;
CaptureOperation = original.CaptureOperation;
PreservedSymbols = original.PreservedSymbols;
Exceptions = original.Exceptions;
}

public ProgramState SetOperationValue(IOperationWrapper operation, SymbolicValue value) =>
operation is null
? throw new ArgumentNullException(nameof(operation))
Expand Down

0 comments on commit 74c570e

Please sign in to comment.