summaryrefslogtreecommitdiff
path: root/src/sticker
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-24 15:09:47 +0200
committerMax Kellermann <max@musicpd.org>2019-04-24 15:09:47 +0200
commit0dccadff892231c4318c3573af9f9ce4fcae371e (patch)
treed71531dcb246d6a86716c2afc985399138f8dc43 /src/sticker
parent5a915eb0e697fed503e07a25076af6d20cdbd405 (diff)
sticker/Database: remove unused function sticker_get_value()
Diffstat (limited to 'src/sticker')
-rw-r--r--src/sticker/StickerDatabase.cxx10
-rw-r--r--src/sticker/StickerDatabase.hxx11
2 files changed, 0 insertions, 21 deletions
diff --git a/src/sticker/StickerDatabase.cxx b/src/sticker/StickerDatabase.cxx
index ff59090fc..9169fbdfc 100644
--- a/src/sticker/StickerDatabase.cxx
+++ b/src/sticker/StickerDatabase.cxx
@@ -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,
diff --git a/src/sticker/StickerDatabase.hxx b/src/sticker/StickerDatabase.hxx
index 134213bb6..583cb0c17 100644
--- a/src/sticker/StickerDatabase.hxx
+++ b/src/sticker/StickerDatabase.hxx
@@ -109,17 +109,6 @@ 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.
*
* @param sticker the sticker object