diff --git a/src/codec/anticipation-codec.scala b/src/codec/anticipation-codec.scala index 5bca1dc..21f0e43 100644 --- a/src/codec/anticipation-codec.scala +++ b/src/codec/anticipation-codec.scala @@ -29,10 +29,6 @@ object Bytes: lambda(array) array.asInstanceOf[IArray[Byte]] -extension [FormatType](value: FormatType) - def decode[ResultType](using decodable: ResultType is Decodable in FormatType): ResultType = - decodable.decoded(value) - extension [ValueType: Encodable in Bytes](value: ValueType) def bytestream: Bytes = ValueType.encode(value) diff --git a/src/codec/anticipation.Decodable.scala b/src/codec/anticipation.Decodable.scala deleted file mode 100644 index 8bc0757..0000000 --- a/src/codec/anticipation.Decodable.scala +++ /dev/null @@ -1,32 +0,0 @@ -/* - Anticipation, version 0.26.0. Copyright 2025 Jon Pretty, Propensive OÜ. - - The primary distribution site is: https://propensive.com/ - - Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software distributed under the - License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, - either express or implied. See the License for the specific language governing permissions - and limitations under the License. -*/ - -package anticipation - -import prepositional.* - -object Decodable: - given [ValueType] => ValueType is Decodable in ValueType = identity(_) - -trait Decodable: - inline def decodable: this.type = this - type Self - type Format - - def decoded(value: Format): Self - - def map[SelfType2](lambda: Self => SelfType2): SelfType2 is Decodable in Format = - value => lambda(decodable.decoded(value)) diff --git a/src/codec/soundness+anticipation-codec.scala b/src/codec/soundness+anticipation-codec.scala index 7ced139..dc48111 100644 --- a/src/codec/soundness+anticipation-codec.scala +++ b/src/codec/soundness+anticipation-codec.scala @@ -16,4 +16,4 @@ package soundness -export anticipation.{Decodable, Encodable, Bytes, bytestream} +export anticipation.{Encodable, Bytes, bytestream}