mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-04 20:38:50 +01:00
w32: Remove unused code.
* jnlib/w32-reg.c (write_w32_registry_string): Remove.
This commit is contained in:
parent
c3a57d7677
commit
1b89863ec1
@ -148,38 +148,4 @@ read_w32_registry_string (const char *root, const char *dir, const char *name)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
write_w32_registry_string (const char *root, const char *dir,
|
||||
const char *name, const char *value)
|
||||
{
|
||||
HKEY root_key, reg_key;
|
||||
|
||||
if ( !(root_key = get_root_key(root) ) )
|
||||
return -1;
|
||||
|
||||
if ( RegOpenKeyEx( root_key, dir, 0, KEY_WRITE, ®_key )
|
||||
!= ERROR_SUCCESS )
|
||||
return -1;
|
||||
|
||||
if ( RegSetValueEx (reg_key, name, 0, REG_SZ, (BYTE *)value,
|
||||
strlen( value ) ) != ERROR_SUCCESS )
|
||||
{
|
||||
if ( RegCreateKey( root_key, name, ®_key ) != ERROR_SUCCESS )
|
||||
{
|
||||
RegCloseKey(reg_key);
|
||||
return -1;
|
||||
}
|
||||
if ( RegSetValueEx (reg_key, name, 0, REG_SZ, (BYTE *)value,
|
||||
strlen( value ) ) != ERROR_SUCCESS )
|
||||
{
|
||||
RegCloseKey(reg_key);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
RegCloseKey (reg_key);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /*HAVE_W32_SYSTEM*/
|
||||
|
@ -24,8 +24,6 @@
|
||||
/*-- w32-reg.c --*/
|
||||
char *read_w32_registry_string (const char *root,
|
||||
const char *dir, const char *name );
|
||||
int write_w32_registry_string (const char *root, const char *dir,
|
||||
const char *name, const char *value);
|
||||
|
||||
#ifdef USE_SIMPLE_GETTEXT
|
||||
char *bindtextdomain (const char *domainname, const char *dirname);
|
||||
|
Loading…
Reference in New Issue
Block a user