mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
remove unused getAllLocations() API
This commit is contained in:
parent
3dc7848c5d
commit
dc55b5c64c
5 changed files with 0 additions and 25 deletions
|
@ -1018,12 +1018,6 @@ JNIEXPORT jboolean Java_com_b44t_messenger_DcContext_setLocation(JNIEnv *env, jo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
JNIEXPORT void Java_com_b44t_messenger_DcContext_deleteAllLocations(JNIEnv *env, jobject obj)
|
|
||||||
{
|
|
||||||
dc_delete_all_locations(get_dc_context(env, obj));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
JNIEXPORT jlong Java_com_b44t_messenger_DcContext_getProviderFromEmailWithDnsCPtr(JNIEnv *env, jobject obj, jstring email)
|
JNIEXPORT jlong Java_com_b44t_messenger_DcContext_getProviderFromEmailWithDnsCPtr(JNIEnv *env, jobject obj, jstring email)
|
||||||
{
|
{
|
||||||
CHAR_REF(email);
|
CHAR_REF(email);
|
||||||
|
|
|
@ -212,7 +212,6 @@ public class DcContext {
|
||||||
public native int joinSecurejoin (String qr);
|
public native int joinSecurejoin (String qr);
|
||||||
public native void sendLocationsToChat (int chat_id, int seconds);
|
public native void sendLocationsToChat (int chat_id, int seconds);
|
||||||
public native boolean isSendingLocationsToChat(int chat_id);
|
public native boolean isSendingLocationsToChat(int chat_id);
|
||||||
public native void deleteAllLocations ();
|
|
||||||
public DcProvider getProviderFromEmailWithDns (String email) { long cptr = getProviderFromEmailWithDnsCPtr(email); return cptr!=0 ? new DcProvider(cptr) : null; }
|
public DcProvider getProviderFromEmailWithDns (String email) { long cptr = getProviderFromEmailWithDnsCPtr(email); return cptr!=0 ? new DcProvider(cptr) : null; }
|
||||||
|
|
||||||
public String getNameNAddr() {
|
public String getNameNAddr() {
|
||||||
|
|
|
@ -4,11 +4,6 @@ import android.location.Location;
|
||||||
|
|
||||||
import java.util.Observable;
|
import java.util.Observable;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by cyberta on 06.03.19.
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class DcLocation extends Observable {
|
public class DcLocation extends Observable {
|
||||||
private Location lastLocation;
|
private Location lastLocation;
|
||||||
private static DcLocation instance;
|
private static DcLocation instance;
|
||||||
|
|
|
@ -16,10 +16,6 @@ import java.util.Observer;
|
||||||
|
|
||||||
import static android.content.Context.BIND_AUTO_CREATE;
|
import static android.content.Context.BIND_AUTO_CREATE;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by cyberta on 06.03.19.
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class DcLocationManager implements Observer {
|
public class DcLocationManager implements Observer {
|
||||||
|
|
||||||
private static final String TAG = DcLocationManager.class.getSimpleName();
|
private static final String TAG = DcLocationManager.class.getSimpleName();
|
||||||
|
@ -94,11 +90,6 @@ public class DcLocationManager implements Observer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deleteAllLocations() {
|
|
||||||
DcHelper.getContext(context).deleteAllLocations();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update(Observable o, Object arg) {
|
public void update(Observable o, Object arg) {
|
||||||
if (o instanceof DcLocation) {
|
if (o instanceof DcLocation) {
|
||||||
|
|
|
@ -12,10 +12,6 @@ import android.os.Bundle;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by cyberta on 06.03.19.
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class LocationBackgroundService extends Service {
|
public class LocationBackgroundService extends Service {
|
||||||
|
|
||||||
private static final int TIMEOUT = 1000 * 15;
|
private static final int TIMEOUT = 1000 * 15;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue