summaryrefslogtreecommitdiff
path: root/service/http/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/parse.go')
-rw-r--r--service/http/parse.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/service/http/parse.go b/service/http/parse.go
index a7516ca6..1f90930a 100644
--- a/service/http/parse.go
+++ b/service/http/parse.go
@@ -2,7 +2,6 @@ package http
import (
"net/http"
- "os"
)
// MaxLevel defines maximum tree depth for incoming request data and files.
@@ -81,20 +80,6 @@ func parseUploads(r *http.Request, cfg *UploadsConfig) *Uploads {
return u
}
-// exists if file exists.
-func exists(path string) bool {
- _, err := os.Stat(path)
- if err == nil {
- return true
- }
-
- if os.IsNotExist(err) {
- return false
- }
-
- return false
-}
-
// pushes new file upload into it's proper place.
func (d fileTree) push(k string, v []*FileUpload) {
keys := fetchIndexes(k)