aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Marshall <jmarshall@xbmc.org>2013-11-30 19:24:42 +1300
committerJonathan Marshall <jmarshall@xbmc.org>2013-12-24 13:48:48 +1300
commit54732006e9462563c69bd1611b52830fb896bd1c (patch)
treeca333b52be083ace4d20bb1882c0a1470bd86cf0
parent2e63913fb55d4d14fee2898db68be849984d9399 (diff)
[musicdb] cosmetic: remove unused parameter from GetSongFromDataset
-rw-r--r--xbmc/music/MusicDatabase.cpp17
-rw-r--r--xbmc/music/MusicDatabase.h2
2 files changed, 4 insertions, 15 deletions
diff --git a/xbmc/music/MusicDatabase.cpp b/xbmc/music/MusicDatabase.cpp
index 5ed7546478..39b0e0bd18 100644
--- a/xbmc/music/MusicDatabase.cpp
+++ b/xbmc/music/MusicDatabase.cpp
@@ -997,7 +997,7 @@ int CMusicDatabase::AddPath(const CStdString& strPath1)
return -1;
}
-CSong CMusicDatabase::GetSongFromDataset(bool bWithMusicDbPath/*=false*/)
+CSong CMusicDatabase::GetSongFromDataset()
{
CSong song;
song.idSong = m_pDS->fv(song_idSong).get_asInt();
@@ -1026,18 +1026,7 @@ CSong CMusicDatabase::GetSongFromDataset(bool bWithMusicDbPath/*=false*/)
song.albumArtist = StringUtils::Split(m_pDS->fv(song_strAlbumArtists).get_asString(), g_advancedSettings.m_musicItemSeparator);
// Get filename with full path
- if (!bWithMusicDbPath)
- song.strFileName = URIUtils::AddFileToFolder(m_pDS->fv(song_strPath).get_asString(), m_pDS->fv(song_strFileName).get_asString());
- else
- {
- CStdString strFileName = m_pDS->fv(song_strFileName).get_asString();
- CStdString strExt = URIUtils::GetExtension(strFileName);
- song.strFileName = StringUtils::Format("musicdb://albums/%ld/%ld%s",
- m_pDS->fv(song_idAlbum).get_asInt(),
- m_pDS->fv(song_idSong).get_asInt(),
- strExt.c_str());
- }
-
+ song.strFileName = URIUtils::AddFileToFolder(m_pDS->fv(song_strPath).get_asString(), m_pDS->fv(song_strFileName).get_asString());
return song;
}
@@ -4949,7 +4938,7 @@ void CMusicDatabase::ExportKaraokeInfo(const CStdString & outFile, bool asHTML)
while (!m_pDS->eof())
{
- CSong song = GetSongFromDataset( false );
+ CSong song = GetSongFromDataset();
CStdString songnum = StringUtils::Format("%06d", song.iKaraokeNumber);
if ( asHTML )
diff --git a/xbmc/music/MusicDatabase.h b/xbmc/music/MusicDatabase.h
index 517de3fcb9..2f65370d1b 100644
--- a/xbmc/music/MusicDatabase.h
+++ b/xbmc/music/MusicDatabase.h
@@ -447,7 +447,7 @@ private:
virtual void CreateViews();
void SplitString(const CStdString &multiString, std::vector<std::string> &vecStrings, CStdString &extraStrings);
- CSong GetSongFromDataset(bool bWithMusicDbPath=false);
+ CSong GetSongFromDataset();
CArtist GetArtistFromDataset(dbiplus::Dataset* pDS, bool needThumb = true);
CArtist GetArtistFromDataset(const dbiplus::sql_record* const record, bool needThumb = true);
CAlbum GetAlbumFromDataset(dbiplus::Dataset* pDS, bool imageURL=false);