Skip to content

Commit

Permalink
Removed unused ID method from ChannelList
Browse files Browse the repository at this point in the history
  • Loading branch information
UlyanaAndrukhiv committed Feb 4, 2025
1 parent 91bef99 commit b51c719
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions network/channels/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ package channels

import (
"regexp"
"sort"

"github.com/onflow/flow-go/model/flow"
)

// Channel specifies a virtual and isolated communication medium.
Expand Down Expand Up @@ -36,13 +33,6 @@ func (cl ChannelList) Swap(i, j int) {
cl[i], cl[j] = cl[j], cl[i]
}

// ID returns hash of the content of ChannelList. It first sorts the ChannelList and then takes its
// hash value.
func (cl ChannelList) ID() flow.Identifier {
sort.Sort(cl)
return flow.MakeID(cl)
}

// Contains returns true if the ChannelList contains the given channel.
func (cl ChannelList) Contains(channel Channel) bool {
for _, c := range cl {
Expand Down

0 comments on commit b51c719

Please sign in to comment.