sticker/Database: remove unused function sticker_get_value()
This commit is contained in:
parent
5a915eb0e6
commit
0dccadff89
|
@ -314,16 +314,6 @@ sticker_delete_value(const char *type, const char *uri, const char *name)
|
|||
return modified;
|
||||
}
|
||||
|
||||
const char *
|
||||
sticker_get_value(const Sticker &sticker, const char *name) noexcept
|
||||
{
|
||||
auto i = sticker.table.find(name);
|
||||
if (i == sticker.table.end())
|
||||
return nullptr;
|
||||
|
||||
return i->second.c_str();
|
||||
}
|
||||
|
||||
void
|
||||
sticker_foreach(const Sticker &sticker,
|
||||
void (*func)(const char *name, const char *value,
|
||||
|
|
|
@ -108,17 +108,6 @@ sticker_delete(const char *type, const char *uri);
|
|||
bool
|
||||
sticker_delete_value(const char *type, const char *uri, const char *name);
|
||||
|
||||
/**
|
||||
* Determines a single value in a sticker.
|
||||
*
|
||||
* @param sticker the sticker object
|
||||
* @param name the name of the sticker
|
||||
* @return the sticker value, or nullptr if none was found
|
||||
*/
|
||||
gcc_pure
|
||||
const char *
|
||||
sticker_get_value(const Sticker &sticker, const char *name) noexcept;
|
||||
|
||||
/**
|
||||
* Iterates over all sticker items in a sticker.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue