From c51a7f629e2d3336522027e03e7e0538c8b61c84 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 18 May 2023 12:19:51 +0100 Subject: [PATCH] Codechange: GRFParameterInfo no longer needs deep-copy constructor. --- src/newgrf_config.cpp | 20 -------------------- src/newgrf_config.h | 1 - 2 files changed, 21 deletions(-) diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index ed134c1741..3e07f518ed 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -208,26 +208,6 @@ GRFParameterInfo::GRFParameterInfo(uint nr) : complete_labels(false) {} -/** - * Create a new GRFParameterInfo object that is a deep copy of an existing - * parameter info object. - * @param info The GRFParameterInfo object to make a copy of. - */ -GRFParameterInfo::GRFParameterInfo(GRFParameterInfo &info) : - name(info.name), - desc(info.desc), - type(info.type), - min_value(info.min_value), - max_value(info.max_value), - def_value(info.def_value), - param_nr(info.param_nr), - first_bit(info.first_bit), - num_bit(info.num_bit), - value_names(info.value_names), - complete_labels(info.complete_labels) -{ -} - /** * Get the value of this user-changeable parameter from the given config. * @param config The GRFConfig to get the value from. diff --git a/src/newgrf_config.h b/src/newgrf_config.h index 3d345e6d95..be1060d6f6 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -132,7 +132,6 @@ enum GRFParameterType { /** Information about one grf parameter. */ struct GRFParameterInfo { GRFParameterInfo(uint nr); - GRFParameterInfo(GRFParameterInfo &info); GRFTextList name; ///< The name of this parameter GRFTextList desc; ///< The description of this parameter GRFParameterType type; ///< The type of this parameter