Skip to content

Commit

Permalink
remove unsed code
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Sep 10, 2024
1 parent 26d765e commit 2ee5548
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions modules/light-clients/08-wasm/testing/simapp/simd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"io"
"os"
"runtime/debug"
"strings"

wasmvm "github.com/CosmWasm/wasmvm/v2"
Expand Down Expand Up @@ -367,35 +366,3 @@ func CheckLibwasmVersion(wasmExpectedVersion string) error {
}
return nil
}

type preRunFn func(cmd *cobra.Command, args []string) error

func chainPreRuns(pfns ...preRunFn) preRunFn {
return func(cmd *cobra.Command, args []string) error {
for _, pfn := range pfns {
if pfn != nil {
if err := pfn(cmd, args); err != nil {
return err
}
}
}
return nil
}
}

func getExpectedLibwasmVersion() string {
buildInfo, ok := debug.ReadBuildInfo()
if !ok {
panic("can't read build info")
}
for _, d := range buildInfo.Deps {
if d.Path != "github.com/CosmWasm/wasmvm/v2" {
continue
}
if d.Replace != nil {
return d.Replace.Version
}
return d.Version
}
return ""
}

0 comments on commit 2ee5548

Please sign in to comment.