diff --git a/jwt.cpp b/jwt.cpp index 8622a7a..6efa57d 100644 --- a/jwt.cpp +++ b/jwt.cpp @@ -52,7 +52,6 @@ bool verifyJWT(const std::string &token) { } result = true; - std::cout << "USER " << jwt_get_grant(jwt, "user") << " LOGGED IN!" << std::endl; finished_valid: finish: diff --git a/main.cpp b/main.cpp index 30dc71c..ca0941f 100644 --- a/main.cpp +++ b/main.cpp @@ -31,7 +31,6 @@ void performPostFunc(const std::shared_ptr &session, const std session->fetch( content_length, [callback]( const std::shared_ptr< restbed::Session > &session, const restbed::Bytes & body ) { rapidjson::Document doc; - std::cout << std::string(reinterpret_cast(body.data()), body.size()) << std::endl; doc.Parse(reinterpret_cast(body.data()), body.size()); if(doc.HasParseError()) { sendResponse("ERROR: Invalid body!", 401, session); @@ -42,12 +41,10 @@ void performPostFunc(const std::shared_ptr &session, const std } bool verifyLogin( const std::shared_ptr< restbed::Session > &session, rapidjson::GenericDocument> &doc ) { - std::cout << "WAAA" << std::endl; if(doc.FindMember("token") == doc.MemberEnd() || !doc["token"].IsString()) { sendResponse("ERROR: Invalid token!", 401, session); return false; } - std::cout << "AAAA" << std::endl; const auto *token = doc["token"].GetString(); auto res = verifyJWT(token); if(!res) { @@ -78,7 +75,6 @@ std::string getTypesJson() { } result << " ]\n}"; auto res = result.str(); - std::cout << res << std::endl; return res; } @@ -112,7 +108,6 @@ std::string getOptionsJson(const RenameObject &search) { } res << " ]\n}"; auto result = res.str(); - std::cout << result << std::endl; return result; } @@ -235,7 +230,6 @@ void renamePathRest( const std::shared_ptr< restbed::Session > &session, rapidjs } std::string getFilesJson() { - std::cout << "GETTING FILES JSON" << std::endl; std::ostringstream res; res << "{\n \"files\": [\n"; auto files = getFilesInSource(cfg.getSourcePath()); @@ -326,7 +320,6 @@ std::pair move(std::string path, uint64_t target_id, const st path = cfg.getSourcePath() + "/" + path; } auto canon_path = FSLib::canonical(path); - std::cout << "CANON: " << canon_path << std::endl; if(canon_path.substr(0, cfg.getSourcePath().length()) != cfg.getSourcePath()) { return {false, "Invalid path"}; } diff --git a/themoviedb/functions.cpp b/themoviedb/functions.cpp index 1911cfe..ee2af75 100644 --- a/themoviedb/functions.cpp +++ b/themoviedb/functions.cpp @@ -11,10 +11,6 @@ #include #include -#define cout std::wcout -#define cerr std::wcerr -#define cin std::wcin - constexpr const char_t *dir_divider = L"\\"; #else // UNIX @@ -24,10 +20,6 @@ constexpr const char_t *dir_divider = L"\\"; #include #include -#define cout std::cout -#define cerr std::cerr -#define cin std::cin - constexpr const char_t *dir_divider = "/"; #endif // UNIX diff --git a/thetvdb/functions.cpp b/thetvdb/functions.cpp index f7e4457..4d3dbf9 100644 --- a/thetvdb/functions.cpp +++ b/thetvdb/functions.cpp @@ -12,10 +12,6 @@ #include #include -#define cout std::wcout -#define cerr std::wcerr -#define cin std::wcin - constexpr const char_t *dir_divider = L"\\"; #else // UNIX @@ -25,10 +21,6 @@ constexpr const char_t *dir_divider = L"\\"; #include #include -#define cout std::cout -#define cerr std::cerr -#define cin std::cin - constexpr const char_t *dir_divider = "/"; #endif // UNIX diff --git a/thetvdb/tv_rename.cpp b/thetvdb/tv_rename.cpp index 356cdab..a1b05a5 100644 --- a/thetvdb/tv_rename.cpp +++ b/thetvdb/tv_rename.cpp @@ -30,20 +30,12 @@ constexpr const char_t *_tv_rename_dir_divider = L"\\"; -#define cout std::wcout -#define cerr std::wcerr -#define cin std::wcin - #define toString( a ) utf8_to_wstring( a ) #else constexpr const char_t *_tv_rename_dir_divider = "/"; -#define cout std::cout -#define cerr std::cerr -#define cin std::cin - #define toString( a ) a #endif