summaryrefslogtreecommitdiffstats
path: root/helpers/general.go
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2016-05-07 16:34:53 -0500
committerCameron Moore <moorereason@gmail.com>2016-06-25 17:57:05 -0500
commite2aea65170985d7428c468ce0591557ad95af884 (patch)
tree2c7e21e00b2b57f829426a690442095e46e73483 /helpers/general.go
parent29ca323a34e8f6e673c70a1af9c9f95a916229bd (diff)
helpers: Remove ToReader funcs
Remove StringToReader and BytesToReader in favor of using the stdlib directly.
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 {