From bd7225ce38deef335a89490bb8c603674da3c4e8 Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Thu, 4 May 2023 14:43:12 +0100 Subject: [PATCH] XSI-1433: Removed DMC deprecation warning. Signed-off-by: Konstantina Chremmou --- XenAdmin/TabPages/BallooningPage.cs | 18 +----------------- XenModel/Messages.Designer.cs | 9 --------- XenModel/Messages.resx | 3 --- 3 files changed, 1 insertion(+), 29 deletions(-) diff --git a/XenAdmin/TabPages/BallooningPage.cs b/XenAdmin/TabPages/BallooningPage.cs index 944ae46689..54a017cfbc 100644 --- a/XenAdmin/TabPages/BallooningPage.cs +++ b/XenAdmin/TabPages/BallooningPage.cs @@ -391,7 +391,7 @@ private void Rebuild() pageContainerPanel.ResumeLayout(); ReLayout(); - SetupDeprecationBanner(); + Banner.Visible = false; } private void ReLayout() @@ -453,22 +453,6 @@ private void SetRowWidth(Control row) { row.Width = pageContainerPanel.Width - pageContainerPanel.Padding.Left - 25; // It won't drop below row.MinimumSize.Width though } - - private void SetupDeprecationBanner() - { - if (Helpers.QuebecOrGreater(xenObject.Connection) && - vms.Any(vm => vm.has_ballooning() && vm.memory_dynamic_min != vm.memory_static_max)) - { - Banner.AppliesToVersion = string.Format(Messages.XENSERVER_8_1, BrandManager.ProductVersion81); - Banner.BannerType = DeprecationBanner.Type.Deprecation; - Banner.FeatureName = Messages.DMC; - Banner.Visible = !HiddenFeatures.LinkLabelHidden; - } - else - { - Banner.Visible = false; - } - } } } diff --git a/XenModel/Messages.Designer.cs b/XenModel/Messages.Designer.cs index 0d187339a5..3f415815d4 100755 --- a/XenModel/Messages.Designer.cs +++ b/XenModel/Messages.Designer.cs @@ -12915,15 +12915,6 @@ public static string DISPLAY_DETAILS { } } - /// - /// Looks up a localized string similar to Dynamic Memory Control. - /// - public static string DMC { - get { - return ResourceManager.GetString("DMC", resourceCulture); - } - } - /// /// Looks up a localized string similar to The Dynamic Memory Control (DMC) is not available due to license restrictions on the server.. /// diff --git a/XenModel/Messages.resx b/XenModel/Messages.resx index 93a52ad61c..52463497a6 100755 --- a/XenModel/Messages.resx +++ b/XenModel/Messages.resx @@ -4572,9 +4572,6 @@ Plugging in untrustworthy USB devices to your computer may put your computer at Display options - - Dynamic Memory Control - The Dynamic Memory Control (DMC) is not available due to license restrictions on the server.