From 2cae54b99d46bd8b7c446800589a7b3948bdd84d Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 21 Sep 2022 09:53:12 +0200 Subject: [PATCH] cgroup: make get_v1_controllers private we have no external users left Signed-off-by: Wolfgang Bumiller --- src/PVE/CGroup.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PVE/CGroup.pm b/src/PVE/CGroup.pm index 44b3297..92a0654 100644 --- a/src/PVE/CGroup.pm +++ b/src/PVE/CGroup.pm @@ -40,9 +40,7 @@ sub new { # # Returns a set (hash mapping names to `1`) of cgroupv1 controllers, and an # optional boolean whether a unified (cgroupv2) hierarchy exists. -# -# Deprecated: Use `get_cgroup_controllers()` instead. -sub get_v1_controllers { +my sub get_v1_controllers { my $v1 = {}; my $v2 = 0; my $data = PVE::Tools::file_get_contents('/proc/self/cgroup');