From c093e93b2831037261680cd2922a9cb27f370fb0 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 6 Sep 2018 11:35:43 +0200 Subject: [PATCH] rbd: remove unused size conversion function since the json output gives the sizes in bytes, we do not need to convert anymore Signed-off-by: Dominik Csapak --- PVE/Storage/RBDPlugin.pm | 7 ------- 1 file changed, 7 deletions(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 6c0e617..c3b0cd9 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -13,13 +13,6 @@ use JSON; use base qw(PVE::Storage::Plugin); -my $rbd_unittobytes = { - "k" => 1024, - "M" => 1024*1024, - "G" => 1024*1024*1024, - "T" => 1024*1024*1024*1024, -}; - my $get_parent_image_name = sub { my ($parent) = @_; return undef if !$parent;