Remove unused exported methods

pull/7463/head
Edd Robinson 2016-10-18 16:19:44 +01:00
parent ad2d33f859
commit 6c149b31ef
2 changed files with 0 additions and 7 deletions

View File

@ -49,7 +49,6 @@ type Service struct {
Logger *log.Logger
wg sync.WaitGroup
err chan error
conn *net.UDPConn
batcher *tsdb.PointBatcher
typesdb gollectd.Types
@ -70,7 +69,6 @@ func NewService(c Config) *Service {
Config: c.WithDefaults(),
Logger: log.New(os.Stderr, "[collectd] ", log.LstdFlags),
err: make(chan error),
stats: &Statistics{},
defaultTags: models.StatisticTags{"bind": c.BindAddress},
}
@ -276,9 +274,6 @@ func (s *Service) SetTypes(types string) (err error) {
return
}
// Err returns a channel for fatal errors that occur on go routines.
func (s *Service) Err() chan error { return s.err }
// Addr returns the listener's address. Returns nil if listener is closed.
func (s *Service) Addr() net.Addr {
return s.conn.LocalAddr()

View File

@ -49,7 +49,6 @@ type Service struct {
mu sync.Mutex
wg sync.WaitGroup
done chan struct{}
err chan error
tls bool
cert string
@ -85,7 +84,6 @@ func NewService(c Config) (*Service, error) {
s := &Service{
tls: d.TLSEnabled,
cert: d.Certificate,
err: make(chan error),
BindAddress: d.BindAddress,
Database: d.Database,
RetentionPolicy: d.RetentionPolicy,