diff --git a/utils/utils.go b/utils/utils.go index 71214c3e..5b54c65f 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -15,7 +15,6 @@ import ( "fmt" "io" "net/http" - "os" "path/filepath" "regexp" ) @@ -54,14 +53,6 @@ var ( urlPattern = regexp.MustCompile(`^(https?)://[^\s/$.?#].[^\s]*$`) ) -func ReadFile(path string) ([]byte, error) { - b, err := os.ReadFile(filepath.Clean(path)) - if err != nil { - return nil, err - } - return b, nil -} - func EcdsaPrivateKeyToAddress(privateKey *ecdsa.PrivateKey) (gethcommon.Address, error) { publicKey := privateKey.Public() publicKeyECDSA, ok := publicKey.(*ecdsa.PublicKey)