]> git.proxmox.com Git - pve-container.git/commitdiff
command: cleanup unused function
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 6 Apr 2020 07:50:43 +0000 (09:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 6 Apr 2020 10:44:16 +0000 (12:44 +0200)
We used a $limiting parameter instead.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Command.pm

index b361c7d1dcdae66d7a1c47d9820735a72ed58ee0..a09b2be1932f5dc58b47b9fbe530b06b81f8b7f8 100644 (file)
@@ -173,24 +173,4 @@ sub get_cgroup_path($;$$) {
     return unpack('Z*', $data);
 }
 
-# Retrieve the cgroup path for a running container.
-# If $limiting is set, get the payload path without the namespace subdirectory,
-# otherwise return the full namespaced path.
-#
-# Returns undef if the container is not running, dies on errors.
-sub get_limiting_cgroup_path($;$) {
-    my ($vmid, $subsystem) = @_;
-
-    # subsystem name must be a zero-terminated C string.
-    my ($res, $data) = simple_command(
-       $vmid,
-       LXC_CMD_GET_LIMITING_CGROUP,
-       pack('Z*', $subsystem),
-    );
-    return undef if !defined $res;
-
-    # data is a zero-terminated string:
-    return unpack('Z*', $data);
-}
-
 1;