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

Unverified Commit becdb331 authored by AndyScherzinger's avatar AndyScherzinger
Browse files

remove empty lines and unused date pattern

parent 18f75d42
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ dependencies {
    compile 'org.parceler:parceler-api:1.1.6'
    annotationProcessor 'org.parceler:parceler:1.1.6'
    compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'

}

android {
+2 −15
Original line number Diff line number Diff line
/*  Nextcloud Android Library is available under MIT license
 *   Copyright (C) 2017 Alejandro Bautista
/**  Nextcloud Android Library is available under MIT license
 *
 *   Copyright (C) 2017 Alejandro Bautista
 *   @author Alejandro Bautista
 *
 *
 *   Permission is hereby granted, free of charge, to any person obtaining a copy
 *   of this software and associated documentation files (the "Software"), to deal
 *   in the Software without restriction, including without limitation the rights
@@ -54,10 +53,8 @@ import java.util.List;
 * accessible via the activities endpoint at {@value OCS_ROUTE_V12_AND_UP}, specified at
 * {@link "https://github.com/nextcloud/activity/blob/master/docs/endpoint-v2.md"}.
 */

public class GetRemoteActivitiesOperation extends RemoteOperation{


    private static final String TAG = GetRemoteActivitiesOperation.class.getSimpleName();

    // OCS Routes
@@ -69,14 +66,6 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{

    private static final String NODE_DATA = "data";

    /**
     * Date pattern according to
     * http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
     * for "2004-02-12T15:19:21+00:00"
     */
    private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX");


    @Override
    protected RemoteOperationResult run(OwnCloudClient client) {
        RemoteOperationResult result = null;
@@ -92,7 +81,6 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{
        Log_OC.d(TAG, "URL: " + url);

        try {

            get = new GetMethod(url);
            get.addRequestHeader(OCS_API_HEADER, OCS_API_HEADER_VALUE);

@@ -140,5 +128,4 @@ public class GetRemoteActivitiesOperation extends RemoteOperation{
    private boolean isSuccess(int status) {
        return (status == HttpStatus.SC_OK);
    }

}