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{}