From 0c522c6bbf9c00024a5ffffaf85065cc67c6d3c1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 16 Aug 2023 14:51:55 +0200 Subject: [PATCH] libnetwork/datastore: remove deprecated scope consts Removes the deprecated consts, which moved to a separate "scope" package in commit 6ec03d6745dc986d5175ac8270bb9052e04c1c2c, and are no longer used; - datastore.LocalScope - datastore.GlobalScope - datastore.SwarmScope Signed-off-by: Sebastiaan van Stijn --- libnetwork/datastore/datastore.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/libnetwork/datastore/datastore.go b/libnetwork/datastore/datastore.go index baa024b8b4..b0c15c8756 100644 --- a/libnetwork/datastore/datastore.go +++ b/libnetwork/datastore/datastore.go @@ -71,22 +71,6 @@ type ScopeClientCfg struct { Config *store.Config } -const ( - // LocalScope indicates to store the KV object in local datastore such as boltdb - // - // Deprecated: use [scope.Local]. - LocalScope = scope.Local - // GlobalScope indicates to store the KV object in global datastore - // - // Deprecated: use [scope.Global]. - GlobalScope = scope.Global - // SwarmScope is not indicating a datastore location. It is defined here - // along with the other two scopes just for consistency. - // - // Deprecated: use [scope.Swarm]. - SwarmScope = scope.Swarm -) - const ( // NetworkKeyPrefix is the prefix for network key in the kv store NetworkKeyPrefix = "network"