remove dangerous LinphoneCore.createDefaultCallParameters() from java api.

This commit is contained in:
Simon Morlat 2015-11-02 22:01:25 +01:00
parent bd00a4df59
commit 7b529234d6
3 changed files with 0 additions and 14 deletions

View file

@ -3797,9 +3797,6 @@ JNIEXPORT void JNICALL Java_org_linphone_core_LinphoneCallParamsImpl_setVideoDir
extern "C" void Java_org_linphone_core_LinphoneCallParamsImpl_destroy(JNIEnv *env, jobject thiz, jlong lc){
return linphone_call_params_destroy((LinphoneCallParams*)lc);
}
extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_createDefaultCallParams(JNIEnv *env, jobject thiz, jlong lc){
return (jlong) linphone_core_create_default_call_parameters((LinphoneCore*)lc);
}
/*
* Class: org_linphone_core_LinphoneCoreImpl

View file

@ -1129,12 +1129,6 @@ public interface LinphoneCore {
* @return 0 if successful, -1 otherwise.
**/
int updateCall(LinphoneCall call, LinphoneCallParams params);
/**
* Get default call parameters reflecting current linphone core configuration
* @return LinphoneCallParams
* @deprecated use LinphoneCore.createCallParams().
*/
LinphoneCallParams createDefaultCallParameters();
/**
* Create a LinphoneCallParams suitable to be used for a new incoming call or an established call, in

View file

@ -106,7 +106,6 @@ class LinphoneCoreImpl implements LinphoneCore {
private native int getFirewallPolicy(long nativePtr);
private native void setStunServer(long nativePtr, String stun_server);
private native String getStunServer(long nativePtr);
private native long createDefaultCallParams(long nativePtr);
private native int updateCall(long ptrLc, long ptrCall, long ptrParams);
private native int getUploadBandwidth(long nativePtr);
private native void setUploadBandwidth(long nativePtr, int bw);
@ -498,10 +497,6 @@ class LinphoneCoreImpl implements LinphoneCore {
setStunServer(nativePtr,stunServer);
}
public synchronized LinphoneCallParams createDefaultCallParameters() {
return new LinphoneCallParamsImpl(createDefaultCallParams(nativePtr));
}
public synchronized LinphoneCall inviteAddressWithParams(LinphoneAddress to, LinphoneCallParams params) throws LinphoneCoreException {
long ptrDestination = ((LinphoneAddressImpl)to).nativePtr;
long ptrParams =((LinphoneCallParamsImpl)params).nativePtr;