From 93608ae163791d7c6266508bed33710877b0ed00 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Wed, 7 Jun 2023 11:32:49 +0200 Subject: [PATCH] Remove unused field from peer state (#939) On mobile system the direct flag is unused --- client/android/client.go | 2 -- client/android/peer_notifier.go | 1 - 2 files changed, 3 deletions(-) diff --git a/client/android/client.go b/client/android/client.go index e5dd9db9f..63c54f4b3 100644 --- a/client/android/client.go +++ b/client/android/client.go @@ -118,11 +118,9 @@ func (c *Client) PeersList() *PeerInfoArray { p.IP, p.FQDN, p.ConnStatus.String(), - p.Direct, } peerInfos[n] = pi } - return &PeerInfoArray{items: peerInfos} } diff --git a/client/android/peer_notifier.go b/client/android/peer_notifier.go index b998fa00e..9f6fcddd6 100644 --- a/client/android/peer_notifier.go +++ b/client/android/peer_notifier.go @@ -5,7 +5,6 @@ type PeerInfo struct { IP string FQDN string ConnStatus string // Todo replace to enum - Direct bool } // PeerInfoCollection made for Java layer to get non default types as collection