From 1339ef01532610b88d457ea9dabcb49c328533d7 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Fri, 11 Oct 2024 11:31:31 +0200 Subject: [PATCH] delete unused --- .../integration/tx/aminojson/aminojson_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/integration/tx/aminojson/aminojson_test.go b/tests/integration/tx/aminojson/aminojson_test.go index eefbbfb51b38..eb271308f8d6 100644 --- a/tests/integration/tx/aminojson/aminojson_test.go +++ b/tests/integration/tx/aminojson/aminojson_test.go @@ -2,7 +2,6 @@ package aminojson import ( "context" - "encoding/json" "fmt" "reflect" "testing" @@ -574,20 +573,3 @@ func postFixPulsarMessage(msg proto.Message) { } } } - -// sortJson sorts the JSON bytes by way of the side effect of unmarshalling and remarshalling the JSON -// using encoding/json. This hacky way of sorting JSON fields was used by the legacy amino JSON encoding in -// x/auth/migrations/legacytx.StdSignBytes. It is used here ensure the x/tx JSON encoding is equivalent to -// the legacy amino JSON encoding. -func sortJson(bz []byte) ([]byte, error) { - var c any - err := json.Unmarshal(bz, &c) - if err != nil { - return nil, err - } - js, err := json.Marshal(c) - if err != nil { - return nil, err - } - return js, nil -}