Secret: Remove #noaccess with block

This commit is contained in:
Didactic Drunk 2021-06-21 17:40:58 -07:00
parent f9eefbde0e
commit a5a5d9de03
2 changed files with 0 additions and 7 deletions

View File

@ -144,8 +144,6 @@ module Crypto::Secret
abstract def readwrite(& : Bytes -> U) forall U
# Temporarily marks a region as readonly depending on implementation and yields `Bytes`
abstract def readonly(& : Bytes -> U) forall U
# Temporarily Makes a region inaccessible depending on implementation. It cannot be read or written, but the data are preserved.
abstract def noaccess(& : Bytes -> U) forall U
protected abstract def to_slice(& : Bytes -> U) forall U
abstract def bytesize : Int32

View File

@ -46,11 +46,6 @@ module Crypto::Secret::Stateless
self
end
# Not thread safe
def noaccess(& : Bytes -> U) forall U
yield
end
# Not thread safe
def reset
end