Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Dongri Jin <[email protected]>
  • Loading branch information
dongrie committed Dec 20, 2023
1 parent 488997f commit eadd642
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions core/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ func logChannelStates(src, dst *ProvableChain, srcChan, dstChan *chantypes.Query

func checkChannelFinality(src, dst *ProvableChain, srcChannel, dstChannel *chantypes.Channel) (bool, error) {
logger := GetChannelPairLogger(src, dst)
if src.Chain.Path().ChannelID == "" && dst.Chain.Path().ChannelID == "" {
return true, nil
}
sh, err := src.LatestHeight()
if err != nil {
return false, err
Expand Down
3 changes: 0 additions & 3 deletions core/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,6 @@ func mustGetAddress(chain interface {

func checkConnectionFinality(src, dst *ProvableChain, srcConnection, dstConnection *conntypes.ConnectionEnd) (bool, error) {
logger := GetConnectionPairLogger(src, dst)
if src.Path().ConnectionID == "" && dst.Path().ConnectionID == "" {
return true, nil
}
sh, err := src.LatestHeight()
if err != nil {
return false, err
Expand Down

0 comments on commit eadd642

Please sign in to comment.