Commit be38ad5b authored by Max Kellermann's avatar Max Kellermann

sticker: don't export sticker_list_values()

sticker_list_values() is only used internally in sticker.c. Remove sticker_song_list_values() completely, it is superseded by sticker_song_get().
parent 24da9410
...@@ -40,22 +40,6 @@ sticker_song_get_value(const struct song *song, const char *name) ...@@ -40,22 +40,6 @@ sticker_song_get_value(const struct song *song, const char *name)
return value; return value;
} }
GHashTable *
sticker_song_list_values(const struct song *song)
{
char *uri;
GHashTable *hash;
assert(song != NULL);
assert(song_in_database(song));
uri = song_get_uri(song);
hash = sticker_list_values("song", uri);
g_free(uri);
return hash;
}
bool bool
sticker_song_set_value(const struct song *song, sticker_song_set_value(const struct song *song,
const char *name, const char *value) const char *name, const char *value)
......
...@@ -42,13 +42,6 @@ sticker_song_set_value(const struct song *song, ...@@ -42,13 +42,6 @@ sticker_song_set_value(const struct song *song,
const char *name, const char *value); const char *name, const char *value);
/** /**
* Returns a hash table of key value pairs from a song's sticker record.
* The caller must free the GHashTable with g_hash_table_destroy().
*/
GHashTable *
sticker_song_list_values(const struct song *song);
/**
* Deletes a sticker from the database. All values are deleted. * Deletes a sticker from the database. All values are deleted.
*/ */
bool bool
......
...@@ -194,7 +194,7 @@ sticker_load_value(const char *type, const char *uri, const char *name) ...@@ -194,7 +194,7 @@ sticker_load_value(const char *type, const char *uri, const char *name)
return value; return value;
} }
GHashTable * static GHashTable *
sticker_list_values(const char *type, const char *uri) sticker_list_values(const char *type, const char *uri)
{ {
int ret; int ret;
......
...@@ -67,14 +67,6 @@ bool ...@@ -67,14 +67,6 @@ bool
sticker_enabled(void); sticker_enabled(void);
/** /**
* Populates a GHashTable with GStrings of sticker keys and values
* from an object's sticker record. The caller must free the returned
* GHashTable with g_hash_list_destroy().
*/
GHashTable *
sticker_list_values(const char *type, const char *uri);
/**
* Returns one value from an object's sticker record. The caller must * Returns one value from an object's sticker record. The caller must
* free the return value with g_free(). * free the return value with g_free().
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment