From c64577f42eda9e17895aee224ec6bc7f8c91e2a4 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 7 Dec 2023 15:11:50 -0500 Subject: [PATCH] Remove cachedPackets from HostInfo (#145) --- lib/models/HostInfo.dart | 3 --- lib/screens/HostInfoScreen.dart | 1 - 2 files changed, 4 deletions(-) diff --git a/lib/models/HostInfo.dart b/lib/models/HostInfo.dart index 4cdaab6..0b0519b 100644 --- a/lib/models/HostInfo.dart +++ b/lib/models/HostInfo.dart @@ -5,7 +5,6 @@ class HostInfo { int localIndex; int remoteIndex; List remoteAddresses; - int cachedPackets; Certificate? cert; UDPAddress? currentRemote; int messageCounter; @@ -15,7 +14,6 @@ class HostInfo { required this.localIndex, required this.remoteIndex, required this.remoteAddresses, - required this.cachedPackets, required this.messageCounter, this.cert, this.currentRemote, @@ -43,7 +41,6 @@ class HostInfo { localIndex: json['localIndex'], remoteIndex: json['remoteIndex'], remoteAddresses: remoteAddresses, - cachedPackets: json['cachedPackets'], messageCounter: json['messageCounter'], cert: cert, currentRemote: currentRemote, diff --git a/lib/screens/HostInfoScreen.dart b/lib/screens/HostInfoScreen.dart index c9ac64a..461ee88 100644 --- a/lib/screens/HostInfoScreen.dart +++ b/lib/screens/HostInfoScreen.dart @@ -91,7 +91,6 @@ class _HostInfoScreenState extends State { ConfigItem(label: Text('Remote Index'), labelWidth: 150, content: SelectableText('${hostInfo.remoteIndex}')), ConfigItem( label: Text('Message Counter'), labelWidth: 150, content: SelectableText('${hostInfo.messageCounter}')), - ConfigItem(label: Text('Cached Packets'), labelWidth: 150, content: SelectableText('${hostInfo.cachedPackets}')), ]); }