From eadd642dbda3ae47998160e42457a40ed8a67c48 Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Wed, 20 Dec 2023 20:10:29 +0900 Subject: [PATCH] Remove unused code Signed-off-by: Dongri Jin --- core/channel.go | 3 --- core/connection.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/core/channel.go b/core/channel.go index b55b3275..0c49bd56 100644 --- a/core/channel.go +++ b/core/channel.go @@ -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 diff --git a/core/connection.go b/core/connection.go index 116820f6..e2b0aee3 100644 --- a/core/connection.go +++ b/core/connection.go @@ -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