Removed dead code

This commit is contained in:
Alexandre Cesaro 2015-07-14 23:24:25 +02:00
parent 13385d50ea
commit 69106c0cb2
2 changed files with 0 additions and 8 deletions

View File

@ -6,7 +6,6 @@ package gomail
import (
"bytes"
"io"
"io/ioutil"
"mime"
"os"
"path/filepath"
@ -314,6 +313,3 @@ func (msg *Message) Embed(image ...*File) {
msg.embedded = append(msg.embedded, image...)
}
}
// Stubbed out for testing.
var readFile = ioutil.ReadFile

View File

@ -191,10 +191,6 @@ func TestAlternative(t *testing.T) {
}
func TestAttachmentOnly(t *testing.T) {
readFile = func(filename string) ([]byte, error) {
return []byte("Content of " + filepath.Base(filename)), nil
}
msg := NewMessage()
msg.SetHeader("From", "from@example.com")
msg.SetHeader("To", "to@example.com")