From 64bf3fe2ea84ff049ccc421d825f8933b07a94a6 Mon Sep 17 00:00:00 2001 From: Eric Ernsteernst Date: Wed, 8 Jul 2020 13:46:58 -0700 Subject: [PATCH] cgroups: remove unused SystemdCgroup variable and accessor/mutators Since we are now detecting, no longer to keep this state. Signed-off-by: Eric Ernsteernst --- virtcontainers/pkg/cgroups/manager.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/virtcontainers/pkg/cgroups/manager.go b/virtcontainers/pkg/cgroups/manager.go index f7cd017a30..3378ad627a 100644 --- a/virtcontainers/pkg/cgroups/manager.go +++ b/virtcontainers/pkg/cgroups/manager.go @@ -53,9 +53,6 @@ const ( ) var ( - // If set to true, expects cgroupsPath to be of form "slice:prefix:name", otherwise cgroups creation will fail - systemdCgroup *bool - cgroupsLogger = logrus.WithField("source", "virtcontainers/pkg/cgroups") ) @@ -66,18 +63,6 @@ func SetLogger(logger *logrus.Entry) { cgroupsLogger = logger.WithFields(fields) } -func EnableSystemdCgroup() { - systemd := true - systemdCgroup = &systemd -} - -func UseSystemdCgroup() bool { - if systemdCgroup != nil { - return *systemdCgroup - } - return false -} - // returns the list of devices that a hypervisor may need func hypervisorDevices() []specs.LinuxDeviceCgroup { devices := []specs.LinuxDeviceCgroup{}