summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index bf5e55320..58b516bb2 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -208,23 +208,6 @@ public:
this->vehicle_type = (VehicleType)GB(window_number, 11, 5);
switch (this->vehicle_type) {
default: NOT_REACHED();
- case VEH_TRAIN:
- case VEH_ROAD:
- this->vscroll2.SetCapacity(9);
- this->vscroll.SetCapacity(6);
- break;
- case VEH_SHIP:
- case VEH_AIRCRAFT:
- this->vscroll2.SetCapacity(9);
- this->vscroll.SetCapacity(4);
- break;
- }
-
- this->GetWidget<NWidgetCore>(GRP_WIDGET_LIST_GROUP)->widget_data = (this->vscroll2.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START);
- this->GetWidget<NWidgetCore>(GRP_WIDGET_LIST_VEHICLE)->widget_data = (this->vscroll.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START);
-
- switch (this->vehicle_type) {
- default: NOT_REACHED();
case VEH_TRAIN: this->sorting = &_sorting.train; break;
case VEH_ROAD: this->sorting = &_sorting.roadveh; break;
case VEH_SHIP: this->sorting = &_sorting.ship; break;