summaryrefslogtreecommitdiffstats
path: root/helpers/general.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/general.go')
-rw-r--r--helpers/general.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/helpers/general.go b/helpers/general.go
index 8d627831c..731452d9d 100644
--- a/helpers/general.go
+++ b/helpers/general.go
@@ -130,16 +130,6 @@ func ReaderToString(lines io.Reader) string {
return b.String()
}
-// StringToReader does the opposite of ReaderToString.
-func StringToReader(in string) io.Reader {
- return strings.NewReader(in)
-}
-
-// BytesToReader does the opposite of ReaderToBytes.
-func BytesToReader(in []byte) io.Reader {
- return bytes.NewReader(in)
-}
-
// ReaderContains reports whether subslice is within r.
func ReaderContains(r io.Reader, subslice []byte) bool {