Remove unused code.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
1ce31703ea
commit
c700f14ce5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278622
@ -416,7 +416,6 @@ void keys_delete(struct keys *keys);
|
|||||||
void keys_load(struct keys *keys, const struct pdu *pdu);
|
void keys_load(struct keys *keys, const struct pdu *pdu);
|
||||||
void keys_save(struct keys *keys, struct pdu *pdu);
|
void keys_save(struct keys *keys, struct pdu *pdu);
|
||||||
const char *keys_find(struct keys *keys, const char *name);
|
const char *keys_find(struct keys *keys, const char *name);
|
||||||
int keys_find_int(struct keys *keys, const char *name);
|
|
||||||
void keys_add(struct keys *keys,
|
void keys_add(struct keys *keys,
|
||||||
const char *name, const char *value);
|
const char *name, const char *value);
|
||||||
void keys_add_int(struct keys *keys,
|
void keys_add_int(struct keys *keys,
|
||||||
|
@ -161,26 +161,6 @@ keys_find(struct keys *keys, const char *name)
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
keys_find_int(struct keys *keys, const char *name)
|
|
||||||
{
|
|
||||||
const char *str;
|
|
||||||
char *endptr;
|
|
||||||
int num;
|
|
||||||
|
|
||||||
str = keys_find(keys, name);
|
|
||||||
if (str == NULL)
|
|
||||||
return (-1);
|
|
||||||
|
|
||||||
num = strtoul(str, &endptr, 10);
|
|
||||||
if (*endptr != '\0') {
|
|
||||||
log_debugx("invalid numeric value \"%s\"", str);
|
|
||||||
return (-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (num);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
keys_add(struct keys *keys, const char *name, const char *value)
|
keys_add(struct keys *keys, const char *name, const char *value)
|
||||||
{
|
{
|
||||||
|
@ -116,7 +116,6 @@ void keys_delete(struct keys *key);
|
|||||||
void keys_load(struct keys *keys, const struct pdu *pdu);
|
void keys_load(struct keys *keys, const struct pdu *pdu);
|
||||||
void keys_save(struct keys *keys, struct pdu *pdu);
|
void keys_save(struct keys *keys, struct pdu *pdu);
|
||||||
const char *keys_find(struct keys *keys, const char *name);
|
const char *keys_find(struct keys *keys, const char *name);
|
||||||
int keys_find_int(struct keys *keys, const char *name);
|
|
||||||
void keys_add(struct keys *keys,
|
void keys_add(struct keys *keys,
|
||||||
const char *name, const char *value);
|
const char *name, const char *value);
|
||||||
void keys_add_int(struct keys *keys,
|
void keys_add_int(struct keys *keys,
|
||||||
|
@ -162,26 +162,6 @@ keys_find(struct keys *keys, const char *name)
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
keys_find_int(struct keys *keys, const char *name)
|
|
||||||
{
|
|
||||||
const char *str;
|
|
||||||
char *endptr;
|
|
||||||
int num;
|
|
||||||
|
|
||||||
str = keys_find(keys, name);
|
|
||||||
if (str == NULL)
|
|
||||||
return (-1);
|
|
||||||
|
|
||||||
num = strtoul(str, &endptr, 10);
|
|
||||||
if (*endptr != '\0') {
|
|
||||||
log_debugx("invalid numeric value \"%s\"", str);
|
|
||||||
return (-1);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (num);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
keys_add(struct keys *keys, const char *name, const char *value)
|
keys_add(struct keys *keys, const char *name, const char *value)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user