remove unused code

This commit is contained in:
Chris Lu 2013-07-10 00:27:01 -07:00
parent 4c200acd7d
commit 3afc2d2ce6

View file

@ -4,12 +4,10 @@ import (
"bytes"
"encoding/json"
"errors"
"path/filepath"
_ "fmt"
"io"
"io/ioutil"
"log"
"mime"
"mime/multipart"
"net/http"
)
@ -31,7 +29,6 @@ func Upload(uploadUrl string, filename string, reader io.Reader) (*UploadResult,
log.Println("error copying data", err)
return nil, err
}
content_type := mime.TypeByExtension(filepath.Ext(filename))
content_type := body_writer.FormDataContentType()
if err = body_writer.Close(); err != nil {
log.Println("error closing body", err)