aboutsummaryrefslogtreecommitdiff
path: root/b64file/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'b64file/file.go')
-rw-r--r--b64file/file.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/b64file/file.go b/b64file/file.go
index 6f5dd28..624dc2d 100644
--- a/b64file/file.go
+++ b/b64file/file.go
@@ -3,7 +3,6 @@ package b64file
import (
"bufio"
- "bytes"
"encoding"
"encoding/base64"
"errors"
@@ -18,16 +17,6 @@ const untrusted = "untrusted comment: "
// Original Error: "invalid comment in %s; must start with 'untrusted comment: '"
var ErrUntrusted = errors.New("comment must start with 'untrusted comment: '")
-func DecodeString(data string, u encoding.BinaryUnmarshaler) (string, []byte, error) {
- r := strings.NewReader(data)
- return Decode(r, u)
-}
-
-func DecodeBytes(data []byte, u encoding.BinaryUnmarshaler) (string, []byte, error) {
- r := bytes.NewReader(data)
- return Decode(r, u)
-}
-
func Decode(r io.Reader, u encoding.BinaryUnmarshaler) (string, []byte, error) {
buf := bufio.NewReader(r)