mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
remove dead code (#1820)
the number of blocked contacts is just the size of the array returned by getBlockedContacts()
This commit is contained in:
@@ -296,12 +296,6 @@ JNIEXPORT jintArray Java_com_b44t_messenger_DcContext_getContacts(JNIEnv *env, j
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT jint Java_com_b44t_messenger_DcContext_getBlockedCount(JNIEnv *env, jobject obj)
|
||||
{
|
||||
return dc_get_blocked_cnt(get_dc_context(env, obj));
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT jintArray Java_com_b44t_messenger_DcContext_getBlockedContacts(JNIEnv *env, jobject obj)
|
||||
{
|
||||
dc_array_t* ca = dc_get_blocked_contacts(get_dc_context(env, obj));
|
||||
|
||||
@@ -123,7 +123,6 @@ public class DcContext {
|
||||
public native boolean mayBeValidAddr (String addr);
|
||||
public native int lookupContactIdByAddr(String addr);
|
||||
public native int[] getContacts (int flags, String query);
|
||||
public native int getBlockedCount ();
|
||||
public native int[] getBlockedContacts ();
|
||||
public @NonNull DcContact getContact (int contact_id) { return new DcContact(getContactCPtr(contact_id)); }
|
||||
public native int createContact (String name, String addr);
|
||||
|
||||
Reference in New Issue
Block a user