Skip to content

Commit

Permalink
XSI-1433: Removed DMC deprecation warning.
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
  • Loading branch information
kc284 committed May 4, 2023
1 parent f7abe6a commit bd7225c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
18 changes: 1 addition & 17 deletions XenAdmin/TabPages/BallooningPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ private void Rebuild()
pageContainerPanel.ResumeLayout();
ReLayout();

SetupDeprecationBanner();
Banner.Visible = false;
}

private void ReLayout()
Expand Down Expand Up @@ -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;
}
}
}
}

9 changes: 0 additions & 9 deletions XenModel/Messages.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions XenModel/Messages.resx
Original file line number Diff line number Diff line change
Expand Up @@ -4572,9 +4572,6 @@ Plugging in untrustworthy USB devices to your computer may put your computer at
<data name="DISPLAY_DETAILS" xml:space="preserve">
<value>Display options</value>
</data>
<data name="DMC" xml:space="preserve">
<value>Dynamic Memory Control</value>
</data>
<data name="DMC_UNAVAILABLE_LICENSE_RESTRICTION" xml:space="preserve">
<value>The Dynamic Memory Control (DMC) is not available due to license restrictions on the server.</value>
</data>
Expand Down

0 comments on commit bd7225c

Please sign in to comment.