| Index: webrtc/sdk/android/src/jni/peerconnection_jni.cc
|
| diff --git a/webrtc/sdk/android/src/jni/peerconnection_jni.cc b/webrtc/sdk/android/src/jni/peerconnection_jni.cc
|
| index 5f33ba35ca4256da8692d96ef990e7d5d66dfc6b..0b62a83085e50e16ff958b2b129b8c5e71731904 100644
|
| --- a/webrtc/sdk/android/src/jni/peerconnection_jni.cc
|
| +++ b/webrtc/sdk/android/src/jni/peerconnection_jni.cc
|
| @@ -2356,33 +2356,6 @@ JOW(void, CallSessionFileRotatingLogSink_nativeDeleteSink)(
|
| delete sink;
|
| }
|
|
|
| -JOW(jbyteArray, CallSessionFileRotatingLogSink_nativeGetLogData)(
|
| - JNIEnv* jni, jclass, jstring j_dirPath) {
|
| - std::string dir_path = JavaToStdString(jni, j_dirPath);
|
| - std::unique_ptr<rtc::CallSessionFileRotatingStream> stream(
|
| - new rtc::CallSessionFileRotatingStream(dir_path));
|
| - if (!stream->Open()) {
|
| - LOG_V(rtc::LoggingSeverity::LS_WARNING) <<
|
| - "Failed to open CallSessionFileRotatingStream for path " << dir_path;
|
| - return jni->NewByteArray(0);
|
| - }
|
| - size_t log_size = 0;
|
| - if (!stream->GetSize(&log_size) || log_size == 0) {
|
| - LOG_V(rtc::LoggingSeverity::LS_WARNING) <<
|
| - "CallSessionFileRotatingStream returns 0 size for path " << dir_path;
|
| - return jni->NewByteArray(0);
|
| - }
|
| -
|
| - size_t read = 0;
|
| - std::unique_ptr<jbyte> buffer(static_cast<jbyte*>(malloc(log_size)));
|
| - stream->ReadAll(buffer.get(), log_size, &read, nullptr);
|
| -
|
| - jbyteArray result = jni->NewByteArray(read);
|
| - jni->SetByteArrayRegion(result, 0, read, buffer.get());
|
| -
|
| - return result;
|
| -}
|
| -
|
| JOW(jboolean, RtpSender_nativeSetTrack)(JNIEnv* jni,
|
| jclass,
|
| jlong j_rtp_sender_pointer,
|
|
|