forked from mirror/OpenTTD
Cleanup: Remove some unused functions. (#11429)
These were picked up with cppcheck.
This commit is contained in:
@@ -87,16 +87,6 @@ class BuildObjectWindow : public Window {
|
||||
return objclass->GetSpec(_selected_object_index)->IsAvailable();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate the number of columns of the #WID_BO_SELECT_MATRIX widget.
|
||||
* @return Number of columns in the matrix.
|
||||
*/
|
||||
uint GetMatrixColumnCount()
|
||||
{
|
||||
const NWidgetBase *matrix = this->GetWidget<NWidgetBase>(WID_BO_SELECT_MATRIX);
|
||||
return 1 + (matrix->current_x - matrix->smallest_x) / matrix->resize_x;
|
||||
}
|
||||
|
||||
public:
|
||||
BuildObjectWindow(WindowDesc *desc, WindowNumber number) : Window(desc), info_height(1), filter_editbox(EDITBOX_MAX_SIZE * MAX_CHAR_LENGTH, EDITBOX_MAX_SIZE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user