Skip to content

Commit

Permalink
xrGame/ui/UIProgressBar.cpp: remove XXX
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Sep 29, 2018
1 parent a09608c commit b70691f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions src/xrGame/ui/UIProgressBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ void CUIProgressBar::UpdateProgressBar()
m_CurrentLength = GetHeight() * fCurrentLength;
break;

case om_tocenter:
case om_vtocenter:
R_ASSERT2(false, "to_center mode is not implemented.");
break;

default:
m_CurrentLength = 0.0f;
}
Expand Down Expand Up @@ -138,9 +133,6 @@ void CUIProgressBar::Draw()
progress_rect.set(0, center - m_CurrentLength, GetWidth(), center + m_CurrentLength);
break;
}
// XXX: Implement to_center mode
case om_tocenter:
case om_vtocenter: R_ASSERT2(false, "to_center mode is not implemented."); break;
default: NODEFAULT; break;
}

Expand Down
2 changes: 0 additions & 2 deletions src/xrGame/ui/UIProgressBar.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class CUIProgressBar : public CUIWindow
om_down = 3,
om_fromcenter = 4,
om_vfromcenter = 5,
om_tocenter = 6,
om_vtocenter = 7,
om_count
} m_orient_mode;

Expand Down
8 changes: 0 additions & 8 deletions src/xrGame/ui/UIXmlInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,14 +568,6 @@ bool CUIXmlInit::InitProgressBar(CUIXml& xml_doc, LPCSTR path, int index, CUIPro
{
mode = CUIProgressBar::om_vfromcenter;
}
else if (xr_stricmp(mode_str, "to_center") == 0)
{
mode = CUIProgressBar::om_tocenter;
}
else if (xr_stricmp(mode_str, "vert_to_center") == 0)
{
mode = CUIProgressBar::om_vtocenter;
}

pWnd->InitProgressBar(pos, size, mode);

Expand Down

0 comments on commit b70691f

Please sign in to comment.