aboutsummaryrefslogtreecommitdiff
path: root/b64file
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-05 00:01:32 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-05 00:01:32 +0200
commit9ce79a39f26bcf40d8cf4fd4d6e8b7b50190c749 (patch)
tree48dcfb916acd2e9d8a469f71072a51aee5350421 /b64file
parent6394bf32ee3cc1fa74259f9366b4616276485acf (diff)
kiss
Diffstat (limited to 'b64file')
-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)