Browse Source

remove unused function

Alan Shreve 12 years ago
parent
commit
63d79cfe50
1 changed files with 0 additions and 8 deletions
  1. 0 8
      src/ngrok/client/views/web/http.go

+ 0 - 8
src/ngrok/client/views/web/http.go

@@ -5,8 +5,6 @@ import (
 	"bytes"
 	"encoding/json"
 	"html/template"
-	"io"
-	"io/ioutil"
 	"net/http"
 	"net/http/httputil"
 	"net/url"
@@ -26,12 +24,6 @@ func isContentType(h http.Header, ctypes ...string) bool {
 	return false
 }
 
-func readBody(r io.Reader) ([]byte, io.ReadCloser, error) {
-	buf := new(bytes.Buffer)
-	_, err := buf.ReadFrom(r)
-	return buf.Bytes(), ioutil.NopCloser(buf), err
-}
-
 type WebHttpTxn struct {
 	Id string
 	*proto.HttpTxn