Cleanup: Remove some unused functions. (#11429)

These were picked up with cppcheck.
This commit is contained in:
2023-11-03 21:21:00 +00:00
committed by GitHub
parent 4c58df75fd
commit 7d4a91ef9e
15 changed files with 0 additions and 157 deletions

View File

@@ -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)
{