diff options
author | rubidium42 <rubidium@openttd.org> | 2021-07-03 08:03:33 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-07-03 11:26:13 +0200 |
commit | 979783f90e9c5939e645448cf9aac01f86c37fc9 (patch) | |
tree | 89070f06c4ab82fed478d0fae0ddd931f1b74988 /src/strings.cpp | |
parent | 1d9912134df71a0adee5de92b83b9bb361f1f151 (diff) | |
download | openttd-979783f90e9c5939e645448cf9aac01f86c37fc9.tar.xz |
Codechange: replace InjectDParam/ShiftParameters by setting the right parameter values in the first place
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 6e39f7732..423e2ebf0 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -84,16 +84,6 @@ int64 StringParameters::GetInt64(WChar type) } /** - * Shift all data in the data array by the given amount to make - * room for some extra parameters. - */ -void StringParameters::ShiftParameters(uint amount) -{ - assert(amount <= this->num_param); - MemMoveT(this->data + amount, this->data, this->num_param - amount); -} - -/** * Set DParam n to some number that is suitable for string size computations. * @param n Index of the string parameter. * @param max_value The biggest value which shall be displayed. @@ -320,15 +310,6 @@ void SetDParamStr(uint n, const std::string &str) } /** - * Shift the string parameters in the global string parameter array by \a amount positions, making room at the beginning. - * @param amount Number of positions to shift. - */ -void InjectDParam(uint amount) -{ - _global_string_params.ShiftParameters(amount); -} - -/** * Format a number into a string. * @param buff the buffer to write to * @param number the number to write down |