diff --git a/src/runtime/virtcontainers/pkg/cgroups/manager.go b/src/runtime/virtcontainers/pkg/cgroups/manager.go index 23ca1d8279..1748f1aaa9 100644 --- a/src/runtime/virtcontainers/pkg/cgroups/manager.go +++ b/src/runtime/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{}