Skip to content
Snippets Groups Projects
Unverified Commit 759f82ea authored by Sébastien Blin's avatar Sébastien Blin
Browse files

api: remove unused importAccounts exportAccounts

Change-Id: Id149688a7d5ff13d75c02901787e74a9eb5bbde3
parent 324bd3b3
No related branches found
No related tags found
No related merge requests found
......@@ -487,16 +487,6 @@ public class DRingService extends Service {
}
@Override
public int backupAccounts(final List accountIDs, final String toDir, final String password) {
return mAccountService.backupAccounts(accountIDs, toDir, password);
}
@Override
public int restoreAccounts(final String archivePath, final String password) {
return mAccountService.restoreAccounts(archivePath, password);
}
@Override
public void connectivityChanged() {
mHardwareService.connectivityChanged(mPreferencesService.hasNetworkConnected());
......
......@@ -114,8 +114,5 @@ interface IDRingService {
Map getConference(in String id);
int backupAccounts(in List accountIDs, in String toDir, in String password);
int restoreAccounts(in String archivePath, in String password);
void connectivityChanged();
}
......@@ -972,34 +972,6 @@ public class AccountService {
mExecutor.execute(this::registerAllAccounts);
}
/**
* Backs up all the accounts into to an archive in the path
*/
public int backupAccounts(final List<String> accountIds, final String toDir, final String password) {
try {
return mExecutor.submit(() -> {
StringVect ids = new StringVect();
ids.addAll(accountIds);
return Ringservice.exportAccounts(ids, toDir, password);
}).get();
} catch (Exception e) {
Log.e(TAG, "Error running backupAccounts()", e);
}
return 1;
}
/**
* Restores the saved accounts from a path
*/
public int restoreAccounts(final String archivePath, final String password) {
try {
return mExecutor.submit(() -> Ringservice.importAccounts(archivePath, password)).get();
} catch (Exception e) {
Log.e(TAG, "Error running restoreAccounts()", e);
}
return 1;
}
/**
* Registers a new name on the blockchain for the account
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment