Merge pull request #41214 from thaJeztah/remove_unused_v2
Remove unused useShimV2()
This commit is contained in:
commit
95a8e9ff19
2 changed files with 0 additions and 5 deletions
|
@ -654,10 +654,6 @@ func (daemon *Daemon) initRuntimes(_ map[string]types.Runtime) error {
|
|||
func setupResolvConf(config *config.Config) {
|
||||
}
|
||||
|
||||
func (daemon *Daemon) useShimV2() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// RawSysInfo returns *sysinfo.SysInfo .
|
||||
func (daemon *Daemon) RawSysInfo(quiet bool) *sysinfo.SysInfo {
|
||||
return sysinfo.New(quiet)
|
||||
|
|
|
@ -13,7 +13,6 @@ import (
|
|||
// NewClient creates a new libcontainerd client from a containerd client
|
||||
func NewClient(ctx context.Context, cli *containerd.Client, stateDir, ns string, b libcontainerdtypes.Backend) (libcontainerdtypes.Client, error) {
|
||||
if !system.ContainerdRuntimeSupported() {
|
||||
// useShimV2 is ignored for windows
|
||||
return local.NewClient(ctx, cli, stateDir, ns, b)
|
||||
}
|
||||
return remote.NewClient(ctx, cli, stateDir, ns, b)
|
||||
|
|
Loading…
Add table
Reference in a new issue