Remove unneeded constructors.
This commit is contained in:
1 parent
9ab0ea5f34
commit
4f8c482645
12 files changed
+48
-220
No files matched your search
@@ -48,16 +48,6 @@ namespace VocaluxeLib.Menu
|
||||
[XmlElement("Skin")]
|
||||
public string TextureName;
|
||||
public SThemeColor Color;
|
||||
|
||||
public SThemeBackground(SThemeBackground theme)
|
||||
{
|
||||
Name = theme.Name;
|
||||
Type = theme.Type;
|
||||
SlideShowTextures = theme.SlideShowTextures;
|
||||
VideoName = theme.VideoName;
|
||||
TextureName = theme.TextureName;
|
||||
Color = new SThemeColor(theme.Color);
|
||||
}
|
||||
}
|
||||
|
||||
public class CBackground : IMenuElement
|
||||
@@ -93,7 +83,7 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
public CBackground(SThemeBackground theme, int partyModeID)
|
||||
{
|
||||
_Theme = new SThemeBackground(theme);
|
||||
_Theme = theme;
|
||||
_PartyModeID = partyModeID;
|
||||
|
||||
LoadTextures();
|
||||
@@ -274,7 +264,7 @@ namespace VocaluxeLib.Menu
|
||||
|
||||
public SThemeBackground GetTheme()
|
||||
{
|
||||
return new SThemeBackground(_Theme);
|
||||
return _Theme;
|
||||
}
|
||||
#endregion public
|
||||
|
||||
|
||||
Reference in new issue
Block a user