This stuff doesn't need to be in oro

This commit is contained in:
King_DuckZ 2020-08-10 02:47:55 +01:00
parent eeab1d5c5e
commit 53ba7febf4
4 changed files with 6 additions and 7 deletions

View file

@ -9,7 +9,7 @@
# undef base64_decode
#endif
namespace oro {
namespace duck {
std::vector<char> base64_decode (std::string_view text) {
base64_decode_context ctx;
@ -26,6 +26,6 @@ std::vector<char> base64_decode (std::string_view text) {
return retval;
}
} //namespace oro
} //namespace duck
#undef restrict

View file

@ -3,8 +3,8 @@
#include <string_view>
#include <vector>
namespace oro {
namespace duck {
std::vector<char> base64_decode (std::string_view text);
} //namespace oro
} //namespace duck

View file

@ -52,7 +52,7 @@ executable(meson.project_name(),
'timer_icons.cpp',
'oro/originsdb.cpp',
'gnulib/lib/base64.c',
'oro/base64.cpp',
'base64.cpp',
project_config_file,
install: true,
dependencies: lib_deps,

View file

@ -6,7 +6,6 @@
#include "SQLiteCpp/SQLiteCpp.h"
#include "oro/items.hpp"
#include "oro/icons.hpp"
#include "oro/base64.hpp"
#include <mutex>
namespace oro {
@ -82,7 +81,7 @@ void OriginsDB::update (const Icons& icons) {
query.exec();
query.reset();
base64_decode(std::string_view(ico.icon).substr(std::string_view("data:image/png;base64,").size()));
//base64_decode(std::string_view(ico.icon).substr(std::string_view("data:image/png;base64,").size()));
}
transaction.commit();