Common: delete accidental dead branch (Coverity)

CID 135586 in widget_hotkey_list: logically dead code

This code was added accidentally; it is both dead and unnecessary, and so was
removed.
This commit is contained in:
Chris Pavlina 2016-03-05 23:13:25 -05:00
parent ba038ac507
commit b9be9a4f57
1 changed files with 0 additions and 2 deletions

View File

@ -436,8 +436,6 @@ void WIDGET_HOTKEY_LIST::OnSize( wxSizeEvent& aEvent )
if( hk_column_width < HOTKEY_MIN_WIDTH ) if( hk_column_width < HOTKEY_MIN_WIDTH )
hk_column_width = HOTKEY_MIN_WIDTH; hk_column_width = HOTKEY_MIN_WIDTH;
else if( hk_column_width <= 0 )
hk_column_width = 1;
int name_column_width = rect.width - hk_column_width - HORIZ_MARGIN; int name_column_width = rect.width - hk_column_width - HORIZ_MARGIN;