Removed unused methoed OnDatatransferProgressListener#onTransferProgress(long)
authorDavid A. Velasco <dvelasco@solidgear.es>
Wed, 15 Jan 2014 09:41:37 +0000 (10:41 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Wed, 15 Jan 2014 09:41:37 +0000 (10:41 +0100)
oc_framework/sample_client/src/com/owncloud/android/oc_framework/sampleclient/MainActivity.java
oc_framework/src/com/owncloud/android/oc_framework/network/webdav/OnDatatransferProgressListener.java
src/com/owncloud/android/files/services/FileDownloader.java
src/com/owncloud/android/files/services/FileUploader.java
src/com/owncloud/android/ui/fragment/FileDetailFragment.java
src/com/owncloud/android/ui/preview/FileDownloadFragment.java

index 5642554..6f7d216 100644 (file)
@@ -242,10 +242,4 @@ public class MainActivity extends Activity implements OnRemoteOperationListener,
         });
        }
 
         });
        }
 
-
-       @Override
-       public void onTransferProgress(long arg0) {
-               // TODO Remove from library
-       }
-       
 }
 }
index f0180b7..c08e8c6 100644 (file)
@@ -19,6 +19,5 @@
 package com.owncloud.android.oc_framework.network.webdav;
 
 public interface OnDatatransferProgressListener {
 package com.owncloud.android.oc_framework.network.webdav;
 
 public interface OnDatatransferProgressListener {
-    public void onTransferProgress(long progressRate);
     public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer, String fileAbsoluteName);
 }
     public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer, String fileAbsoluteName);
 }
index 5d2a824..0dee605 100644 (file)
@@ -282,13 +282,6 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
             }
         }
 
             }
         }
 
-
-        @Override
-        public void onTransferProgress(long progressRate) {
-            // old way, should not be in use any more
-        }
-
-
         @Override
         public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer,
                 String fileName) {
         @Override
         public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer,
                 String fileName) {
@@ -450,15 +443,6 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
     
     
     /**
     
     
     /**
-     * Callback method to update the progress bar in the status notification (old version)
-     */
-    @Override
-    public void onTransferProgress(long progressRate) {
-        // NOTHING TO DO HERE ANYMORE
-    }
-    
-
-    /**
      * Updates the status notification with the result of a download operation.
      * 
      * @param downloadResult    Result of the download operation.
      * Updates the status notification with the result of a download operation.
      * 
      * @param downloadResult    Result of the download operation.
index 3595263..4b4de80 100644 (file)
@@ -417,12 +417,6 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
 
 
         @Override
 
 
         @Override
-        public void onTransferProgress(long progressRate) {
-            // old way, should not be in use any more
-        }
-
-
-        @Override
         public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer,
                 String fileName) {
             String key = buildRemoteName(mCurrentUpload.getAccount(), mCurrentUpload.getFile());
         public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer,
                 String fileName) {
             String key = buildRemoteName(mCurrentUpload.getAccount(), mCurrentUpload.getFile());
@@ -718,15 +712,6 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
     }
 
     /**
     }
 
     /**
-     * Callback method to update the progress bar in the status notification
-     * (old version)
-     */
-    @Override
-    public void onTransferProgress(long progressRate) {
-        // NOTHING TO DO HERE ANYMORE
-    }
-
-    /**
      * Updates the status notification with the result of an upload operation.
      * 
      * @param uploadResult Result of the upload operation.
      * Updates the status notification with the result of an upload operation.
      * 
      * @param uploadResult Result of the upload operation.
index e024bc6..ec43bd1 100644 (file)
@@ -904,11 +904,6 @@ public class FileDetailFragment extends FileFragment implements
         }
         
         @Override
         }
         
         @Override
-        public void onTransferProgress(long progressRate) {
-            // old method, nothing here
-        };
-
-        @Override
         public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer, String filename) {
             int percent = (int)(100.0*((double)totalTransferredSoFar)/((double)totalToTransfer));
             if (percent != mLastPercent) {
         public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer, String filename) {
             int percent = (int)(100.0*((double)totalTransferredSoFar)/((double)totalToTransfer));
             if (percent != mLastPercent) {
index c18f84b..bacba8c 100644 (file)
@@ -353,11 +353,6 @@ public class FileDownloadFragment extends FileFragment implements OnClickListene
         }
         
         @Override
         }
         
         @Override
-        public void onTransferProgress(long progressRate) {
-            // old method, nothing here
-        };
-
-        @Override
         public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer, String filename) {
             int percent = (int)(100.0*((double)totalTransferredSoFar)/((double)totalToTransfer));
             if (percent != mLastPercent) {
         public void onTransferProgress(long progressRate, long totalTransferredSoFar, long totalToTransfer, String filename) {
             int percent = (int)(100.0*((double)totalTransferredSoFar)/((double)totalToTransfer));
             if (percent != mLastPercent) {