Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Commit

Permalink
Prepare for #27 removing Value function
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorn committed Jan 18, 2019
1 parent 2392e85 commit cdde760
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 19 deletions.
3 changes: 0 additions & 3 deletions core/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ type Source interface {

// Tells the receiver to cleanup and close all connections.
Close() error

// Value returns the value associated with key or nil if none.
Value(interface{}) interface{}
}

// Strategy chooses a source from a ring of sources.
Expand Down
4 changes: 0 additions & 4 deletions core/balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ func (s *mock) Close() error {
return nil
}

func (s *mock) Value(key interface{}) interface{} {
return nil
}

// Just test that Len does not panic.
func TestLen(t *testing.T) {
b := &core.Balancer{}
Expand Down
4 changes: 0 additions & 4 deletions source/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ func (i *Interface) Close() error {
return nil
}

func (i *Interface) Value(key interface{}) interface{} {
return nil
}

func (i *Interface) String() string {
return i.Name()
}
Expand Down
4 changes: 0 additions & 4 deletions source/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ func (s *mock) Close() error {
return nil
}

func (s *mock) Value(key interface{}) interface{} {
return nil
}

func (s *mock) String() string {
return s.Name()
}
Expand Down
4 changes: 0 additions & 4 deletions store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ func (s *mock) Close() error {
return nil
}

func (s *mock) Value(key interface{}) interface{} {
return nil
}

func (s *mock) String() string {
return s.Name()
}
Expand Down

0 comments on commit cdde760

Please sign in to comment.