Secret: Remove #noaccess with block
This commit is contained in:
parent
f9eefbde0e
commit
a5a5d9de03
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user