summaryrefslogtreecommitdiff
path: root/logger
diff options
authorJames Hunt <james.hunt@ubuntu.com>2015-03-17 16:55:13 +0000
committerJames Hunt <james.hunt@ubuntu.com>2015-03-17 16:55:13 +0000
commitb1c7ea166b50688a72f6b8b7203d018e53744b98 (patch)
tree92da26cfe2c0662f3f15e3b570bdd5b01c207fc4 /logger
parent0959714025c336ffefb28822ca2493b3ef1946ac (diff)
* logger/logger_test.go: Removed now-unused fileSize().
Diffstat (limited to 'logger')
-rw-r--r--logger/logger_test.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/logger/logger_test.go b/logger/logger_test.go
index 85eef9edd3..174da38e0c 100644
--- a/logger/logger_test.go
+++ b/logger/logger_test.go
@@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"log/syslog"
- "os"
"regexp"
"strings"
"testing"
@@ -101,16 +100,6 @@ func sliceContainsRegex(array []string, regex string) bool {
return matches != nil
}
-func fileSize(path string) int64 {
- st, err := os.Stat(path)
-
- if err != nil {
- return -1
- }
-
- return st.Size()
-}
-
func (ts *LoggerTestSuite) TestNewLogWriter(c *C) {
w, err := newLogWriter()
c.Assert(err, IsNil)