Skip to content

Commit 5503940

Browse files
Remove unused error
1 parent c9a1690 commit 5503940

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

fvm/errors/codes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const (
7070
ErrCodeAccountAuthorizationError ErrorCode = 1055
7171
ErrCodeOperationAuthorizationError ErrorCode = 1056
7272
ErrCodeOperationNotSupportedError ErrorCode = 1057
73+
// Deprecated: No longer used.
7374
ErrCodeBlockHeightOutOfRangeError ErrorCode = 1058
7475

7576
// execution errors 1100 - 1200

fvm/errors/execution.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,6 @@ func IsOperationNotSupportedError(err error) bool {
248248
return HasErrorCode(err, ErrCodeOperationNotSupportedError)
249249
}
250250

251-
func NewBlockHeightOutOfRangeError(height uint64) CodedError {
252-
return NewCodedError(
253-
ErrCodeBlockHeightOutOfRangeError,
254-
"block height (%v) is out of queriable range",
255-
height)
256-
}
257-
258-
func IsBlockHeightOutOfRangeError(err error) bool {
259-
return HasErrorCode(err, ErrCodeBlockHeightOutOfRangeError)
260-
}
261-
262251
// NewScriptExecutionCancelledError construct a new CodedError which indicates
263252
// that Cadence Script execution has been cancelled (e.g. request connection
264253
// has been droped)

0 commit comments

Comments
 (0)