Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

shellext: remove unused Printf and PrintfA in StringUtils.h

Changeset 88eaae0784ae

Parent c88431076239

by Adrian Buehlmann

Changes to 2 files · Browse files at 88eaae0784ae Showing diff from parent c88431076239 Diff from another changeset...

 
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
 
130
131
132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
134
135
@@ -130,37 +130,6 @@
     #ifndef POSTINST -/* -wxString Printf(const wxChar* format, ...) -{ - va_list args; - va_start(args, format); - return wxString::FormatV(format, args); -} -*/ - -std::string PrintfA(const char* format, ...) -{ - char* buf = 0; - std::string res; - va_list args; - va_start(args, format); - int size = 1024; - int len = -1; - while (len == -1) - { - delete[] buf; - - buf = new char[size + 1]; - len = _vsnprintf(buf, size, format, args); - buf[size] = '\0'; - size *= 2; - } - - res = buf; - delete[] buf; - return res; -}      // Convert Unicode string to multibyte string
 
79
80
81
82
83
84
85
86
87
88
89
 
79
80
81
 
 
 
 
 
82
83
84
@@ -79,11 +79,6 @@
 // Cuts the first token off a delimited list  std::string CutFirstToken(std::string& sList, const std::string sDelimiter);   -// Printf returning a std::string -//wxString Printf(const wxChar* format, ...); - -std::string PrintfA(const char* format, ...); -  // Convert Unicode string to multibyte string  std::string WideToMultibyte(const std::wstring& wide, UINT CodePage = CP_ACP);