Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
cgroups: remove unused SystemdCgroup variable and accessor/mutators
Browse files Browse the repository at this point in the history
Since we are now detecting, no longer to keep this state.

Signed-off-by: Eric Ernsteernst <eric@amperecomputing.com>
  • Loading branch information
Eric Ernsteernst authored and egernst committed Jul 24, 2020
1 parent ad5484b commit 64bf3fe
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions virtcontainers/pkg/cgroups/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)

Expand All @@ -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{}
Expand Down

0 comments on commit 64bf3fe

Please sign in to comment.