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

Commit 64bf3fe

Browse files
Eric Ernsteernstegernst
authored andcommitted
cgroups: remove unused SystemdCgroup variable and accessor/mutators
Since we are now detecting, no longer to keep this state. Signed-off-by: Eric Ernsteernst <[email protected]>
1 parent ad5484b commit 64bf3fe

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

virtcontainers/pkg/cgroups/manager.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ const (
5353
)
5454

5555
var (
56-
// If set to true, expects cgroupsPath to be of form "slice:prefix:name", otherwise cgroups creation will fail
57-
systemdCgroup *bool
58-
5956
cgroupsLogger = logrus.WithField("source", "virtcontainers/pkg/cgroups")
6057
)
6158

@@ -66,18 +63,6 @@ func SetLogger(logger *logrus.Entry) {
6663
cgroupsLogger = logger.WithFields(fields)
6764
}
6865

69-
func EnableSystemdCgroup() {
70-
systemd := true
71-
systemdCgroup = &systemd
72-
}
73-
74-
func UseSystemdCgroup() bool {
75-
if systemdCgroup != nil {
76-
return *systemdCgroup
77-
}
78-
return false
79-
}
80-
8166
// returns the list of devices that a hypervisor may need
8267
func hypervisorDevices() []specs.LinuxDeviceCgroup {
8368
devices := []specs.LinuxDeviceCgroup{}

0 commit comments

Comments
 (0)