RESOLVED FIXED 187955
[WTF] String::formatWithArguments() is unused
https://bugs.webkit.org/show_bug.cgi?id=187955
Summary [WTF] String::formatWithArguments() is unused
Tomas Popela
Reported 2018-07-24 04:44:20 PDT
String::formatWithArguments() in Source/WTF/wtf/text/WTFString.h is unused, let's remove it.
Attachments
Patch (2.02 KB, patch)
2018-07-24 04:45 PDT, Tomas Popela
no flags
Patch (4.63 KB, patch)
2018-07-24 06:36 PDT, Tomas Popela
darin: review+
Tomas Popela
Comment 1 2018-07-24 04:45:45 PDT
Tomas Popela
Comment 2 2018-07-24 06:36:27 PDT
Darin Adler
Comment 3 2018-07-28 23:30:35 PDT
After doing this we should rename String::format to String::deprecatedFormat and start phasing it out. Clients can and should use string concatenation, clearly invokable as makeString or possibly just with the + operator, instead. More efficient, likely safer. A few clients might be using advanced features of printf, but even those could probably be added to the concatenation.
Tomas Popela
Comment 4 2018-07-31 01:11:15 PDT
(In reply to Darin Adler from comment #3) > After doing this we should rename String::format to String::deprecatedFormat > and start phasing it out. Clients can and should use string concatenation, > clearly invokable as makeString or possibly just with the + operator, > instead. More efficient, likely safer. A few clients might be using advanced > features of printf, but even those could probably be added to the > concatenation. Thank you for the review Darin! I open bug 188191 for that.
Tomas Popela
Comment 5 2018-07-31 02:21:04 PDT
Radar WebKit Bug Importer
Comment 6 2018-07-31 02:22:26 PDT
Note You need to log in before you can comment on or make changes to this bug.