Skip to content

Commit

Permalink
endpoint: remove InsertEvent function
Browse files Browse the repository at this point in the history
It was only used once and is a one-liner; remove it.

Signed-off by: Ian Vernon <ian@cilium.io>
  • Loading branch information
Ian Vernon authored and gandro committed Sep 5, 2019
1 parent 6e02732 commit 88f3fd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions pkg/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1839,12 +1839,6 @@ func (e *Endpoint) IPs() []net.IP {
return ips
}

// InsertEvent is called when the endpoint is inserted into the endpoint
// manager.
func (e *Endpoint) InsertEvent() {
e.getLogger().Info("New endpoint")
}

// IsDisconnecting returns true if the endpoint is being disconnected or
// already disconnected
//
Expand Down
2 changes: 1 addition & 1 deletion pkg/endpoint/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (e *Endpoint) Expose(mgr endpointManager) error {
e.updateReferences(mgr)
e.RUnlock()

e.InsertEvent()
e.getLogger().Info("New endpoint")

mgr.RunK8sCiliumEndpointSync(e)
return nil
Expand Down

0 comments on commit 88f3fd5

Please sign in to comment.