diff --git a/contracts/utils/structs/CheckpointsConfidential.sol b/contracts/utils/structs/CheckpointsConfidential.sol index 246d29f4..a163dcd8 100644 --- a/contracts/utils/structs/CheckpointsConfidential.sol +++ b/contracts/utils/structs/CheckpointsConfidential.sol @@ -17,11 +17,6 @@ import {Checkpoints} from "./temporary-Checkpoints.sol"; library CheckpointsConfidential { using Checkpoints for Checkpoints.Trace256; - /** - * @dev A value was attempted to be inserted on a past checkpoint. - */ - error CheckpointUnorderedInsertion(); - struct TraceEuint32 { Checkpoints.Trace256 _inner; } diff --git a/scripts/generate/templates/CheckpointsConfidential.js b/scripts/generate/templates/CheckpointsConfidential.js index c8470ddb..84f50e97 100644 --- a/scripts/generate/templates/CheckpointsConfidential.js +++ b/scripts/generate/templates/CheckpointsConfidential.js @@ -22,13 +22,6 @@ const libraryUsage = `\ using Checkpoints for Checkpoints.Trace256; `; -const errors = `\ -/** - * @dev A value was attempted to be inserted on a past checkpoint. - */ -error CheckpointUnorderedInsertion(); -`; - const template = opts => `\ struct ${opts.historyTypeName} { Checkpoints.Trace256 _inner; @@ -125,7 +118,6 @@ module.exports = format( format( [].concat( libraryUsage, - errors, OPTS.map(opts => template(opts)), ), ).trimEnd(),