Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 247031f

Browse files
remove peer.IDFromString (#274)
1 parent 2dc986f commit 247031f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

peer/peer.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,6 @@ func (id ID) Validate() error {
114114
return nil
115115
}
116116

117-
// IDFromString casts a string to the ID type, and validates
118-
// the value to make sure it is a multihash.
119-
func IDFromString(s string) (ID, error) {
120-
if _, err := mh.Cast([]byte(s)); err != nil {
121-
return ID(""), err
122-
}
123-
return ID(s), nil
124-
}
125-
126117
// IDFromBytes casts a byte slice to the ID type, and validates
127118
// the value to make sure it is a multihash.
128119
func IDFromBytes(b []byte) (ID, error) {

0 commit comments

Comments
 (0)