Browse Source

Removed unused methoed OnDatatransferProgressListener#onTransferProgress(long)

David A. Velasco 11 năm trước cách đây
mục cha
commit
690c1bf128

+ 0 - 6
oc_framework/sample_client/src/com/owncloud/android/oc_framework/sampleclient/MainActivity.java

@@ -242,10 +242,4 @@ public class MainActivity extends Activity implements OnRemoteOperationListener,
         });
 	}
 
-
-	@Override
-	public void onTransferProgress(long arg0) {
-		// TODO Remove from library
-	}
-	
 }

+ 0 - 1
oc_framework/src/com/owncloud/android/oc_framework/network/webdav/OnDatatransferProgressListener.java

@@ -19,6 +19,5 @@
 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);
 }

+ 0 - 16
src/com/owncloud/android/files/services/FileDownloader.java

@@ -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) {
@@ -449,15 +442,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.
      * 

+ 0 - 15
src/com/owncloud/android/files/services/FileUploader.java

@@ -416,12 +416,6 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
         }
 
 
-        @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) {
@@ -717,15 +711,6 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
         mLastPercent = percent;
     }
 
-    /**
-     * 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.
      * 

+ 0 - 5
src/com/owncloud/android/ui/fragment/FileDetailFragment.java

@@ -903,11 +903,6 @@ public class FileDetailFragment extends FileFragment implements
             mProgressBar = new WeakReference<ProgressBar>(progressBar);
         }
         
-        @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));

+ 0 - 5
src/com/owncloud/android/ui/preview/FileDownloadFragment.java

@@ -352,11 +352,6 @@ public class FileDownloadFragment extends FileFragment implements OnClickListene
             mProgressBar = new WeakReference<ProgressBar>(progressBar);
         }
         
-        @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));