aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/delete_content.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-02-10 03:49:51 -0800
committerChris Lu <chris.lu@gmail.com>2013-02-10 03:49:51 -0800
commit5071f528f649f3f99336c7d491ceef4859e34744 (patch)
tree0c4bc8a286597cd79e22b1ce02cd9cd3b1c44602 /weed/operation/delete_content.go
parent55f2627fcf965c3765ad9b63878e9a22a59f4b55 (diff)
downloadseaweedfs-5071f528f649f3f99336c7d491ceef4859e34744.tar.xz
seaweedfs-5071f528f649f3f99336c7d491ceef4859e34744.zip
testing compilation with remove package
Diffstat (limited to 'weed/operation/delete_content.go')
-rw-r--r--weed/operation/delete_content.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/weed/operation/delete_content.go b/weed/operation/delete_content.go
deleted file mode 100644
index 2bdb49651..000000000
--- a/weed/operation/delete_content.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package operation
-
-import (
- "log"
- "net/http"
-)
-
-func Delete(url string) error {
- req, err := http.NewRequest("DELETE", url, nil)
- if err != nil {
- log.Println("failing to delete", url)
- return err
- }
- _, err = http.DefaultClient.Do(req)
- return err
-}