db/Visitor: remove the Error parameter

Implementations shall use exceptions instead.
This commit is contained in:
Max Kellermann
2016-10-29 10:04:43 +02:00
parent 78bf4ef5fa
commit 3ff728ab02
9 changed files with 135 additions and 169 deletions

View File

@@ -64,30 +64,26 @@ public:
}
};
static bool
DumpDirectory(const LightDirectory &directory, Error &)
static void
DumpDirectory(const LightDirectory &directory)
{
cout << "D " << directory.GetPath() << endl;
return true;
}
static bool
DumpSong(const LightSong &song, Error &)
static void
DumpSong(const LightSong &song)
{
cout << "S ";
if (song.directory != nullptr)
cout << song.directory << "/";
cout << song.uri << endl;
return true;
}
static bool
DumpPlaylist(const PlaylistInfo &playlist,
const LightDirectory &directory, Error &)
static void
DumpPlaylist(const PlaylistInfo &playlist, const LightDirectory &directory)
{
cout << "P " << directory.GetPath()
<< "/" << playlist.name.c_str() << endl;
return true;
}
int