7777import java .util .Date ;
7878import java .util .List ;
7979import java .util .concurrent .TimeUnit ;
80- import java .util .zip .ZipEntry ;
81- import java .util .zip .ZipOutputStream ;
8280
8381/**
8482 * Asynchronous task for exporting transactions.
@@ -271,7 +269,7 @@ private void moveToTarget() throws Exporter.ExporterException {
271269 /**
272270 * Move the exported files to a specified URI.
273271 * This URI could be a Storage Access Framework file
274- * @throws Exporter.ExporterException
272+ * @throws Exporter.ExporterException if something failed while moving the exported file
275273 */
276274 private void moveExportToUri () throws Exporter .ExporterException {
277275 Uri exportUri = Uri .parse (mExportParams .getExportLocation ());
@@ -293,7 +291,7 @@ private void moveExportToUri() throws Exporter.ExporterException {
293291
294292 /**
295293 * Move the exported files to a GnuCash folder on Google Drive
296- * @throws Exporter.ExporterException
294+ * @throws Exporter.ExporterException if something failed while moving the exported file
297295 * @deprecated Explicit Google Drive integration is deprecated, use Storage Access Framework. See {@link #moveExportToUri()}
298296 */
299297 @ Deprecated
@@ -355,11 +353,8 @@ private void moveExportToDropbox() {
355353
356354 for (String exportedFilePath : mExportedFiles ) {
357355 File exportedFile = new File (exportedFilePath );
358- FileInputStream inputStream = null ;
359356 try {
360- inputStream = new FileInputStream (exportedFile );
361- List <Metadata > entries = dbxClient .files ().listFolder ("" ).getEntries ();
362-
357+ FileInputStream inputStream = new FileInputStream (exportedFile );
363358 FileMetadata metadata = dbxClient .files ()
364359 .uploadBuilder ("/" + exportedFile .getName ())
365360 .uploadAndFinish (inputStream );
0 commit comments