Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1.2 and tip

stable shellext: remove unused GetRegSZValue.

Changeset 1c302f225d77

Parent cb79ad63627a

by Toshi MARUYAMA

Changes to 2 files · Browse files at 1c302f225d77 Showing diff from parent cb79ad63627a Diff from another changeset...

 
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
 
243
244
245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
247
248
@@ -243,30 +243,6 @@
 }     -// read string value from registry -int GetRegSZValue(HKEY hkey, const char* name, std::string& res) -{ - res = ""; - - if (!hkey) - return 0; - - std::vector<BYTE> Data(300); - DWORD cbData = Data.size(); - - LONG rv = ::RegQueryValueExA(hkey, name, 0, 0, &Data[0], &cbData); - - if (rv == ERROR_SUCCESS) - { - res = reinterpret_cast<char*>(&Data[0]); - return 1; - } - - TDEBUG_TRACE("GetRegSZValue(" << name << ") failed"); - - return 0; -} -  // read string value from registry, wide version  int GetRegSZValueW(HKEY hkey, const wchar_t* name, std::wstring& res)  {
 
20
21
22
23
24
25
26
 
20
21
22
 
23
24
25
@@ -20,7 +20,6 @@
 std::string GetHgRepoRoot(const std::string& path);  bool IsHgRepo(const std::string& path);  FILE* fopenReadRenameAllowed(const char* path); -int GetRegSZValue(HKEY hkey, const char* name, std::string& res);  int GetRegSZValueW(HKEY hkey, const wchar_t* name, std::wstring& res);  bool StartsWith(const std::string& a, const std::string& b);  void Tokenize(const std::string& str, std::vector<std::string>& tokens,