Skip to content

Commit

Permalink
Remove temporary code
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Oct 22, 2021
1 parent 0d16afd commit a917d15
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/src/cache/dbcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,7 @@ auto lib::db_cache::get_album_image(const std::string &url) const -> std::vector

auto lib::db_cache::get_album_image(const std::string &url) -> std::vector<unsigned char>
{
try
{
using namespace sqlite_orm;
auto data = storage
.get<lib::db::image>(where(c(&lib::db::image::url) == url))
.data;

return std::vector<unsigned char>(data.cbegin(), data.cend());
}
catch (const std::system_error &e)
{
return {};
}
return {};
}

void lib::db_cache::set_album_image(const std::string &url, const std::vector<unsigned char> &data)
Expand Down

0 comments on commit a917d15

Please sign in to comment.