From 979783f90e9c5939e645448cf9aac01f86c37fc9 Mon Sep 17 00:00:00 2001 From: rubidium42 Date: Sat, 3 Jul 2021 08:03:33 +0200 Subject: Codechange: replace InjectDParam/ShiftParameters by setting the right parameter values in the first place --- src/strings.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/strings.cpp') diff --git a/src/strings.cpp b/src/strings.cpp index 6e39f7732..423e2ebf0 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -83,16 +83,6 @@ int64 StringParameters::GetInt64(WChar type) return this->data[this->offset++]; } -/** - * 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. @@ -319,15 +309,6 @@ void SetDParamStr(uint n, const std::string &str) SetDParamStr(n, str.c_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 -- cgit v1.2.3-54-g00ecf