OSDN Git Service

delete the unused (#323)
[bytom/vapor.git] / vendor / github.com / tendermint / go-crypto / pubkeyinner_wrapper.go
diff --git a/vendor/github.com/tendermint/go-crypto/pubkeyinner_wrapper.go b/vendor/github.com/tendermint/go-crypto/pubkeyinner_wrapper.go
deleted file mode 100644 (file)
index c9c8156..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-// Generated by: main
-// TypeWriter: wrapper
-// Directive: +gen on PubKeyInner
-
-package crypto
-
-import (
-       "github.com/tendermint/go-wire/data"
-)
-
-// Auto-generated adapters for happily unmarshaling interfaces
-// Apache License 2.0
-// Copyright (c) 2017 Ethan Frey (ethan.frey@tendermint.com)
-
-type PubKey struct {
-       PubKeyInner "json:\"unwrap\""
-}
-
-var PubKeyMapper = data.NewMapper(PubKey{})
-
-func (h PubKey) MarshalJSON() ([]byte, error) {
-       return PubKeyMapper.ToJSON(h.PubKeyInner)
-}
-
-func (h *PubKey) UnmarshalJSON(data []byte) (err error) {
-       parsed, err := PubKeyMapper.FromJSON(data)
-       if err == nil && parsed != nil {
-               h.PubKeyInner = parsed.(PubKeyInner)
-       }
-       return err
-}
-
-// Unwrap recovers the concrete interface safely (regardless of levels of embeds)
-func (h PubKey) Unwrap() PubKeyInner {
-       hi := h.PubKeyInner
-       for wrap, ok := hi.(PubKey); ok; wrap, ok = hi.(PubKey) {
-               hi = wrap.PubKeyInner
-       }
-       return hi
-}
-
-/*** below are bindings for each implementation ***/
-
-func init() {
-       PubKeyMapper.RegisterImplementation(PubKeyEd25519{}, "ed25519", 0x1)
-}
-
-func (hi PubKeyEd25519) Wrap() PubKey {
-       return PubKey{hi}
-}