From 69106c0cb2eed2c2b39b620f9a724611f413ba95 Mon Sep 17 00:00:00 2001 From: Alexandre Cesaro Date: Tue, 14 Jul 2015 23:24:25 +0200 Subject: [PATCH] Removed dead code --- message.go | 4 ---- message_test.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/message.go b/message.go index 5fec2b8..58da3f3 100644 --- a/message.go +++ b/message.go @@ -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 diff --git a/message_test.go b/message_test.go index 7e54084..760f4d3 100644 --- a/message_test.go +++ b/message_test.go @@ -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")