Skip to content

Commit

Permalink
Lint warnings in Data layer
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed Dec 11, 2019
1 parent ebf42aa commit c8e080e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ static public class ProviderTableMeta implements BaseColumns {
public static final String OCSHARES_NAME = "name";
public static final String OCSHARES_URL = "url";

public static final String OCSHARES_DEFAULT_SORT_ORDER = OCSHARES_FILE_SOURCE
+ " collate nocase asc";

// Columns of capabilities table
public static final String CAPABILITIES_ACCOUNT_NAME = "account";
public static final String CAPABILITIES_VERSION_MAYOR = "version_mayor";
Expand Down Expand Up @@ -97,8 +94,5 @@ static public class ProviderTableMeta implements BaseColumns {
public static final String CAPABILITIES_FILES_BIGFILECHUNKING = "files_bigfilechunking";
public static final String CAPABILITIES_FILES_UNDELETE = "files_undelete";
public static final String CAPABILITIES_FILES_VERSIONING = "files_versioning";

public static final String CAPABILITIES_DEFAULT_SORT_ORDER = CAPABILITIES_ACCOUNT_NAME
+ " collate nocase asc";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package com.owncloud.android.data.capabilities.datasources

import com.owncloud.android.domain.capabilities.model.OCCapability
import com.owncloud.android.lib.resources.status.GetRemoteCapabilitiesOperation

interface RemoteCapabilitiesDataSource {
fun getCapabilities(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package com.owncloud.android.data.sharing.sharees.datasources

import com.owncloud.android.lib.resources.shares.GetRemoteShareesOperation
import org.json.JSONObject

interface RemoteShareeDataSource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,36 +94,6 @@ data class OCShareEntity(

companion object {

/**
* Generated - should be refreshed every time the class changes!!
*/
private const val serialVersionUID = 4124975224281327921L

private val TAG = OCShareEntity::class.java.simpleName

const val DEFAULT_PERMISSION = -1
const val READ_PERMISSION_FLAG = 1
const val UPDATE_PERMISSION_FLAG = 2
const val CREATE_PERMISSION_FLAG = 4
const val DELETE_PERMISSION_FLAG = 8
const val SHARE_PERMISSION_FLAG = 16
const val MAXIMUM_PERMISSIONS_FOR_FILE = READ_PERMISSION_FLAG +
UPDATE_PERMISSION_FLAG +
SHARE_PERMISSION_FLAG
const val MAXIMUM_PERMISSIONS_FOR_FOLDER = MAXIMUM_PERMISSIONS_FOR_FILE +
CREATE_PERMISSION_FLAG +
DELETE_PERMISSION_FLAG
const val FEDERATED_PERMISSIONS_FOR_FILE_UP_TO_OC9 = READ_PERMISSION_FLAG + UPDATE_PERMISSION_FLAG
const val FEDERATED_PERMISSIONS_FOR_FILE_AFTER_OC9 = READ_PERMISSION_FLAG +
UPDATE_PERMISSION_FLAG +
SHARE_PERMISSION_FLAG
const val FEDERATED_PERMISSIONS_FOR_FOLDER_UP_TO_OC9 = READ_PERMISSION_FLAG +
UPDATE_PERMISSION_FLAG +
CREATE_PERMISSION_FLAG +
DELETE_PERMISSION_FLAG
const val FEDERATED_PERMISSIONS_FOR_FOLDER_AFTER_OC9 =
FEDERATED_PERMISSIONS_FOR_FOLDER_UP_TO_OC9 + SHARE_PERMISSION_FLAG

fun fromCursor(cursor: Cursor): OCShareEntity {
return OCShareEntity(
cursor.getLong(cursor.getColumnIndex(ProviderTableMeta.OCSHARES_FILE_SOURCE)),
Expand Down
3 changes: 0 additions & 3 deletions owncloudData/src/main/res/values/strings.xml

This file was deleted.

0 comments on commit c8e080e

Please sign in to comment.