Remove deprecated field ContainerState.NetworkStatusOld

This field drags in a dependency on CNI and thereby blocks us from disabling CNI
support via a build tag

[NO NEW TESTS NEEDED]

Signed-off-by: Dan Čermák <dcermak@suse.com>
This commit is contained in:
Dan Čermák
2023-12-12 16:21:20 +01:00
parent d8c6ca6c1b
commit 5c7f745468
4 changed files with 3 additions and 44 deletions

View File

@ -643,7 +643,6 @@ func resetContainerState(state *ContainerState) {
state.StartupHCFailureCount = 0
state.NetNS = ""
state.NetworkStatus = nil
state.NetworkStatusOld = nil
}
// Refresh refreshes the container's state after a restart.
@ -694,7 +693,6 @@ func (c *Container) refresh() error {
c.lock = lock
c.state.NetworkStatus = nil
c.state.NetworkStatusOld = nil
// Rewrite the config if necessary.
// Podman 4.0 uses a new port format in the config.