diff --git a/BUILD.bazel b/BUILD.bazel index c8726bd92..7edd11fd7 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -30,7 +30,6 @@ proto_library( srcs = [ "lib/src/main/proto/Av.proto", "lib/src/main/proto/Core.proto", - "lib/src/main/proto/ProtoLog.proto", ], ) diff --git a/lib/src/main/cpp/CMakeLists.txt b/lib/src/main/cpp/CMakeLists.txt index 493a05b66..aaedf14a4 100644 --- a/lib/src/main/cpp/CMakeLists.txt +++ b/lib/src/main/cpp/CMakeLists.txt @@ -68,14 +68,12 @@ add_library( ${ANDROID_CPU_FEATURES} ToxAv/Av.proto ToxCore/Core.proto - util/ProtoLog.proto ToxAv/generated/enums.cpp ToxAv/generated/errors.cpp ToxAv/generated/impls.h ToxAv/generated/im_tox_tox4j_impl_jni_ToxAvJni.h ToxAv/generated/natives.h ToxAv/av.cpp - ToxAv/debug.cpp ToxAv/lifecycle.cpp ToxAv/ToxAv.cpp ToxAv/ToxAv.h @@ -88,7 +86,6 @@ add_library( ToxCore/clientinfo.cpp ToxCore/connection.cpp ToxCore/custom.cpp - ToxCore/debug.cpp ToxCore/filetransfer.cpp ToxCore/friendlist.cpp ToxCore/interaction.cpp @@ -99,7 +96,6 @@ add_library( ToxCrypto/generated/errors.cpp ToxCrypto/generated/im_tox_tox4j_impl_jni_ToxCryptoJni.h ToxCrypto/generated/natives.h - ToxCrypto/debug.cpp ToxCrypto/encryptsave.cpp ToxCrypto/hash.cpp ToxCrypto/ToxCrypto.cpp @@ -122,8 +118,6 @@ add_library( util/jni/Enum.h util/jni/UTFChars.cpp util/jni/UTFChars.h - util/debug_log.cpp - util/debug_log.h util/exceptions.cpp util/exceptions.h util/instance_manager.h diff --git a/lib/src/main/cpp/ToxAv/debug.cpp b/lib/src/main/cpp/ToxAv/debug.cpp deleted file mode 100644 index 6e6bd7223..000000000 --- a/lib/src/main/cpp/ToxAv/debug.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include "ToxAv.h" - -#include -#include - -template<> -void -print_arg (protolog::Value &value, ToxAV *const &tox) -{ - static std::vector ids; - auto found = std::find (ids.begin (), ids.end (), tox); - if (found == ids.end ()) - { - ids.push_back (tox); - found = ids.end () - 1; - } - value.set_v_string ("@" + std::to_string (found - ids.begin () + 1)); -} - -template<> -void -print_arg (protolog::Value &value, int16_t const *const &data) -{ - if (data == nullptr) - value.set_v_string (""); - else - value.set_v_string ("