Remove unneeded constructors.

This commit is contained in:
Florian Küpper committed 2014-09-15 19:44:19 +02:00
1 parent 9ab0ea5f34
commit 4f8c482645
12 files changed
+48 -220

No files matched your search

+2 -16
View File
@@ -53,20 +53,6 @@ namespace VocaluxeLib.Menu
public SThemeColor MaxColor;
[XmlElement("Reflection")]
public SReflection Reflection;
public SThemeEqualizer(SThemeEqualizer theme)
{
Name = theme.Name;
TextureName = theme.TextureName;
Rect = new SRectF(theme.Rect);
NumBars = theme.NumBars;
Space = theme.Space;
Style = theme.Style;
DrawNegative = theme.DrawNegative;
Color = new SThemeColor(theme.Color);
MaxColor = new SThemeColor(theme.MaxColor);
Reflection = new SReflection(theme.Reflection);
}
}
public class CEqualizer : IMenuElement
@@ -124,7 +110,7 @@ namespace VocaluxeLib.Menu
public CEqualizer(SThemeEqualizer theme, int partyModeID)
{
_PartyModeID = partyModeID;
_Theme = new SThemeEqualizer(theme);
_Theme = theme;
Visible = true;
ScreenHandles = false;
@@ -370,7 +356,7 @@ namespace VocaluxeLib.Menu
public SThemeEqualizer GetTheme()
{
return new SThemeEqualizer(_Theme);
return _Theme;
}
#region ThemeEdit