Skip to content

Commit

Permalink
removing unused SNumericTypeMethods.getMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Aug 27, 2024
1 parent 3037f1a commit 016262b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 3 additions & 5 deletions data/shared/src/main/scala/sigma/ast/methods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ trait SNumericTypeMethods extends MonoTypeMethods {
}

object SNumericTypeMethods extends MethodsContainer {

/** Type for which this container defines methods. */
override def ownerType: STypeCompanion = SNumericType

Expand Down Expand Up @@ -399,11 +400,8 @@ object SNumericTypeMethods extends MethodsContainer {
)

protected override def getMethods(): Seq[SMethod] = {
if (VersionContext.current.isV6SoftForkActivated) {
v6Methods
} else {
v5Methods
}
// this .getMethods shouldn't ever be called
???
}

/** Collection of names of numeric casting methods (like `toByte`, `toInt`, etc). */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,6 @@ class ErgoTreeSpecification extends SigmaDslTesting with ContractsTestkit with C

val mc = MethodsContainer(tyDesc.typeId)

println("mc: " + mc.methods.map(_.name))
println("methods: " + methods.map(_.method.name))

mc.methods.length shouldBe methods.length

for (expectedMethod <- methods) {
Expand Down

0 comments on commit 016262b

Please sign in to comment.