1
0
mirror of https://github.com/etesync/android synced 2024-11-22 16:08:13 +00:00

CollectionInfo: remove deprecated code.

This commit is contained in:
Tom Hacohen 2020-01-29 00:39:14 +02:00
parent ceead4815b
commit 09e2a9255a

View File

@ -106,10 +106,5 @@ class CollectionInfo : Serializable {
fun fromJson(json: String): CollectionInfo { fun fromJson(json: String): CollectionInfo {
return GsonBuilder().excludeFieldsWithoutExposeAnnotation().create().fromJson(json, CollectionInfo::class.java) return GsonBuilder().excludeFieldsWithoutExposeAnnotation().create().fromJson(json, CollectionInfo::class.java)
} }
private fun getAsBooleanOrNull(values: ContentValues, field: String): Boolean? {
val i = values.getAsInteger(field)
return if (i == null) null else i != 0
}
} }
} }