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().
This commit is contained in:
Max Kellermann 2009-03-14 14:20:08 +01:00
parent 24da9410fa
commit be38ad5b93
4 changed files with 1 additions and 32 deletions

View File

@ -40,22 +40,6 @@ sticker_song_get_value(const struct song *song, const char *name)
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
sticker_song_set_value(const struct song *song,
const char *name, const char *value)

View File

@ -41,13 +41,6 @@ bool
sticker_song_set_value(const struct song *song,
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.
*/

View File

@ -194,7 +194,7 @@ sticker_load_value(const char *type, const char *uri, const char *name)
return value;
}
GHashTable *
static GHashTable *
sticker_list_values(const char *type, const char *uri)
{
int ret;

View File

@ -66,14 +66,6 @@ sticker_global_finish(void);
bool
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
* free the return value with g_free().