1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-19 21:35:26 -05:00
Simon Tatham f17daf6cc7 Remove a completely unused loop in RTF pasting.
In commit d07d7d66f662b67 I rewrote the code that constructs RTF paste
data so that it uses a strbuf, in place of the previous ad-hoc code
that counted up the lengths of pieces of RTF in advance in order to
realloc the buffer.

But apparently I left in an entire loop whose job was to count up one
of those lengths, failing to notice that it's now completely pointless
because its output value is never needed!

Happily a clang upgrade has just improved the 'variable set but not
used' warning to the point where it can spot that. I expect previously
the variable still counted as 'used' because each increment of it used
the previous value.

(cherry picked from commit 6a27ae772c6fb27f8ddb2bec508e3e403be2a516)
2023-04-19 14:28:36 +01:00
..
2021-05-27 09:48:32 +01:00
2022-08-03 20:48:46 +01:00
2022-09-03 12:02:48 +01:00
2022-09-03 11:59:12 +01:00
2022-09-03 11:59:12 +01:00
2017-05-07 16:29:01 +01:00