Skip to content

Commit 3f7369a

Browse files
committed
libcni: remove some deprecation warnings
We were a bit over-eager with the deprecations; these types and aliases are doing no harm :-). Signed-off-by: Casey Callendrello <[email protected]>
1 parent 097592d commit 3f7369a

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Diff for: libcni/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ type RuntimeConf struct {
6767
CacheDir string
6868
}
6969

70-
// Deprecated: Use PluginConfig instead of NetworkConfig, the NetworkConfig
70+
// Use PluginConfig instead of NetworkConfig, the NetworkConfig
7171
// backwards-compat alias will be removed in a future release.
7272
type NetworkConfig = PluginConfig
7373

Diff for: libcni/conf.go

-3
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,10 @@ func ConfFromFile(filename string) (*NetworkConfig, error) {
285285
return ConfFromBytes(bytes)
286286
}
287287

288-
// Deprecated: Use NetworkConfXXX and NetworkPluginXXX functions
289288
func ConfListFromBytes(bytes []byte) (*NetworkConfigList, error) {
290289
return NetworkConfFromBytes(bytes)
291290
}
292291

293-
// Deprecated: Use NetworkConfXXX and NetworkPluginXXX functions
294292
func ConfListFromFile(filename string) (*NetworkConfigList, error) {
295293
return NetworkConfFromFile(filename)
296294
}
@@ -348,7 +346,6 @@ func LoadConf(dir, name string) (*NetworkConfig, error) {
348346
return nil, NotFoundError{dir, name}
349347
}
350348

351-
// Deprecated: Use NetworkConfXXX and NetworkPluginXXX functions
352349
func LoadConfList(dir, name string) (*NetworkConfigList, error) {
353350
return LoadNetworkConf(dir, name)
354351
}

Diff for: pkg/types/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (n *IPNet) UnmarshalJSON(data []byte) error {
5656
return nil
5757
}
5858

59-
// Deprecated: Use PluginConf instead of NetConf, the NetConf
59+
// Use PluginConf instead of NetConf, the NetConf
6060
// backwards-compat alias will be removed in a future release.
6161
type NetConf = PluginConf
6262

0 commit comments

Comments
 (0)