Skip to content

Commit

Permalink
FFQuantityItem: Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWillden committed Oct 17, 2020
1 parent e1a81d0 commit 3347159
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions cl_dll/ff/vgui/ff_quantityitem.cpp
Expand Up @@ -467,12 +467,6 @@ namespace vgui
localize()->ConvertANSIToUnicode( szLabel, m_wszLabel, sizeof( m_wszLabel ) );
}
RecalculateLabelPosition( bRecalculatePaintOffset );
}

void FFQuantityItem::SetLabelText( wchar_t *newLabelText, bool bRecalculatePaintOffset )
{
wcscpy( m_wszLabel, newLabelText );
RecalculateLabelPosition( bRecalculatePaintOffset );
}

void FFQuantityItem::SetBarWidth( int iBarWidth, bool bRecalculatePaintOffset )
Expand All @@ -495,17 +489,6 @@ namespace vgui
RecalculateAmountMaxPosition( bRecalculatePaintOffset );
}

void FFQuantityItem::SetBarSize( int iBarWidth, int iBarHeight, bool bRecalculatePaintOffset )
{
m_iBarWidth = iBarWidth;
m_iBarHeight = iBarHeight;

RecalculateIconPosition( bRecalculatePaintOffset );
RecalculateLabelPosition( bRecalculatePaintOffset );
RecalculateAmountPosition();
RecalculateAmountMaxPosition( bRecalculatePaintOffset );
}

void FFQuantityItem::SetBarBorderWidth( int iBarBorderWidth, bool bRecalculatePaintOffset )
{
m_iBarBorderWidth = iBarBorderWidth;
Expand Down
2 changes: 0 additions & 2 deletions cl_dll/ff/vgui/ff_quantityitem.h
Expand Up @@ -88,7 +88,6 @@ namespace vgui

void SetIconChar(char *newIconChar, bool bRecalculatePaintOffset = true );
void SetLabelText(char *newLabelText, bool bRecalculatePaintOffset = true );
void SetLabelText(wchar_t *newLabelText, bool bRecalculatePaintOffset = true );

void SetAmountSize( int newAmountSize, bool bRecalculatePaintOffset = true );
void SetIconSize( int newIconSize, bool bRecalculatePaintOffset = true );
Expand All @@ -105,7 +104,6 @@ namespace vgui

void SetBarWidth( int iBarWidth, bool bRecalculatePaintOffset = true );
void SetBarHeight( int iBarHeight, bool bRecalculatePaintOffset = true );
void SetBarSize( int iBarWidth, int iBarHeight, bool bRecalculatePaintOffset = true );
void SetBarBorderWidth( int iBarBorderWidth, bool bRecalculatePaintOffset = true );
void SetBarOrientation( int iBarOrientation );

Expand Down

0 comments on commit 3347159

Please sign in to comment.