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 ExpandEnvStrings

Changeset b3917b68910a

Parent 97ed7791661f

by Adrian Buehlmann

Changes to 2 files · Browse files at b3917b68910a Showing diff from parent 97ed7791661f Diff from another changeset...

 
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
 
178
179
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
@@ -178,43 +178,3 @@
  }   return sResult;  } - - -// Expand environment strings -std::string ExpandEnvStrings(const std::string& str) -{ - std::string result; - - // Determine size - DWORD dwSize = ExpandEnvironmentStringsA(str.c_str(), 0, 0); - if (dwSize > 0) - { - ++dwSize; - char* buf = new char[dwSize + 1]; - ExpandEnvironmentStringsA(str.c_str(), buf, dwSize); - result = buf; - delete[] buf; - } - return result; -} - -#if wxUSE_UNICODE - -wxString ExpandEnvStrings(const wxString& str) -{ - wxString result; - - // Determine size - DWORD dwSize = ExpandEnvironmentStringsW(str.c_str(), 0, 0); - if (dwSize > 0) - { - ++dwSize; - wxChar* buf = new wxChar[dwSize + 1]; - ExpandEnvironmentStringsW(str.c_str(), buf, dwSize); - result = buf; - delete[] buf; - } - return result; -} - -#endif
 
83
84
85
86
87
88
89
90
91
92
93
94
95
 
83
84
85
 
 
 
 
 
 
 
86
87
88
@@ -83,13 +83,6 @@
 std::string SerializeStringVector(const std::vector<std::string>& vStrings,   const std::string& sDelimiter);   -// Expand environment strings -std::string ExpandEnvStrings(const std::string& str); - -#if wxUSE_UNICODE -wxString ExpandEnvStrings(const wxString& str); -#endif -  // comparison function object  class less_nocase  {