Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 822f07ac authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

Remove implementation of ComparableOperation in RemoveFileOperation

parent 564edd0d
Loading
Loading
Loading
Loading
+1 −15
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ import foundation.e.drive.models.SyncedFileState;
 * Created by Vincent on 19/06/2018.
 * Class to be able to wrap concerned SyncedFileState in operation, so it can be retrieve at the end
 */
public class RemoveFileOperation extends RemoveFileRemoteOperation implements ComparableOperation, Parcelable {
public class RemoveFileOperation extends RemoveFileRemoteOperation implements Parcelable {

    private SyncedFileState mSyncedFileState;

@@ -61,18 +61,4 @@ public class RemoveFileOperation extends RemoveFileRemoteOperation implements Co
    public SyncedFileState getSyncedFileState() {
        return mSyncedFileState;
    }

    /**
     * tell what type of element to sync it is
     * @return true if it is an operation for media's element, then false mean its a settings operation
     */
    @Override
    public boolean isMediaType(){
        return this.mSyncedFileState.isMediaType();
    }

    @Override
    public RemoteOperation toRemoteOperation() {
        return this;
    }
}