Permalink
Browse files

Remove unused constants

Change-Id: Icac7f14bd4ae47b867cf67d87800099dfc24f568
  • Loading branch information...
1 parent 06b5fbe commit 97f2626b13741b50be23db596d3fc68c032cb583 @pietern pietern committed Nov 17, 2012
Showing with 1 addition and 7 deletions.
  1. +0 −2 codec.go
  2. +0 −3 json_codec.go
  3. +1 −1 steno.go
  4. +0 −1 steno_test.go
View
2 codec.go
@@ -1,7 +1,5 @@
package steno
-var JSON_CODEC = NewJsonCodec()
-
type Codec interface {
EncodeRecord(record *Record) ([]byte, error)
}
View
3 json_codec.go
@@ -2,11 +2,8 @@ package steno
import (
"encoding/json"
- "time"
)
-const TIME_FORMAT = time.RFC1123
-
type JsonCodec struct {
}
View
2 steno.go
@@ -21,7 +21,7 @@ func Init(c *Config) {
config.Level = LOG_INFO
}
if config.Codec == nil {
- config.Codec = JSON_CODEC
+ config.Codec = NewJsonCodec()
}
if config.Sinks == nil {
config.Sinks = []Sink{}
View
1 steno_test.go
@@ -34,7 +34,6 @@ func (s *StenoSuite) TestInitLoggers(c *C) {
}
func (s *StenoSuite) TestDefaultConfig(c *C) {
- c.Assert(config.Codec, Equals, JSON_CODEC)
c.Assert(config.Level, Equals, LOG_INFO)
c.Assert(config.Port, Equals, 0)
}

0 comments on commit 97f2626

Please sign in to comment.