Skip to content

Commit

Permalink
Merge pull request #9822 from phil65/controlfactory_cleanup
Browse files Browse the repository at this point in the history
[cleanup] - remove some unused stuff from ControlFactory
  • Loading branch information
Philipp Temminghoff committed May 17, 2016
2 parents f427a95 + ada8c60 commit b47b521
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions xbmc/guilib/GUIControlFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,6 @@ CGUIControl* CGUIControlFactory::Create(int parentID, const CRect &rect, TiXmlEl
CTextureInfo textureRadioOnFocus, textureRadioOnNoFocus;
CTextureInfo textureRadioOffFocus, textureRadioOffNoFocus;
CTextureInfo textureRadioOnDisabled, textureRadioOffDisabled;
CTextureInfo imageNoFocus, imageFocus;
CTextureInfo textureProgressIndicator;
CGUIInfoLabel texturePath;
CRect borderSize;
Expand Down Expand Up @@ -753,7 +752,6 @@ CGUIControl* CGUIControlFactory::Create(int parentID, const CRect &rect, TiXmlEl
int preloadItems = 0;

CLabelInfo labelInfo;
CLabelInfo spinInfo;

CGUIInfoColor hitColor(0xFFFFFFFF);
CGUIInfoColor textColor3;
Expand Down Expand Up @@ -897,11 +895,6 @@ CGUIControl* CGUIControlFactory::Create(int parentID, const CRect &rect, TiXmlEl
GetTexture(pControlNode, "textureleftfocus", textureLeftFocus);
GetTexture(pControlNode, "texturerightfocus", textureRightFocus);

GetInfoColor(pControlNode, "spincolor", spinInfo.textColor, parentID);
if (XMLUtils::GetString(pControlNode, "spinfont", strFont))
spinInfo.font = g_fontManager.GetFont(strFont);
if (!spinInfo.font) spinInfo.font = labelInfo.font;

XMLUtils::GetFloat(pControlNode, "spinwidth", spinWidth);
XMLUtils::GetFloat(pControlNode, "spinheight", spinHeight);
XMLUtils::GetFloat(pControlNode, "spinposx", spinPosX);
Expand Down Expand Up @@ -971,9 +964,6 @@ CGUIControl* CGUIControlFactory::Create(int parentID, const CRect &rect, TiXmlEl

GetTexture(pControlNode, "bordertexture", borderTexture);

GetTexture(pControlNode, "imagefolder", imageNoFocus);
GetTexture(pControlNode, "imagefolderfocus", imageFocus);

// fade label can have a whole bunch, but most just have one
std::vector<CGUIInfoLabel> infoLabels;
GetInfoLabels(pControlNode, "label", infoLabels, parentID);
Expand Down Expand Up @@ -1091,10 +1081,8 @@ CGUIControl* CGUIControlFactory::Create(int parentID, const CRect &rect, TiXmlEl
stereo = std::max(-1.f, std::min(1.f, stereo));

XMLUtils::GetInt(pControlNode, "scrollspeed", labelInfo.scrollSpeed);
spinInfo.scrollSpeed = labelInfo.scrollSpeed;

GetString(pControlNode, "scrollsuffix", labelInfo.scrollSuffix);
spinInfo.scrollSuffix = labelInfo.scrollSuffix;

XMLUtils::GetString(pControlNode, "action", action);

Expand Down

0 comments on commit b47b521

Please sign in to comment.