Remove unused constructors

pull/2283/head
Alex Baker 1 year ago
parent 686a36ecbd
commit f72860cef1

@ -75,15 +75,6 @@ data class Geofence(
isDeparture = departure, isDeparture = departure,
) )
@Ignore
constructor(o: Geofence): this(
id = o.id,
task = o.task,
place = o.place,
isArrival = o.isArrival,
isDeparture = o.isDeparture,
)
companion object { companion object {
const val TABLE_NAME = "geofences" const val TABLE_NAME = "geofences"
@JvmField val TABLE = Table(TABLE_NAME) @JvmField val TABLE = Table(TABLE_NAME)

@ -6,7 +6,6 @@ import android.net.Uri
import android.os.Parcelable import android.os.Parcelable
import androidx.room.ColumnInfo import androidx.room.ColumnInfo
import androidx.room.Entity import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.Index import androidx.room.Index
import androidx.room.PrimaryKey import androidx.room.PrimaryKey
import com.todoroo.andlib.data.Table import com.todoroo.andlib.data.Table
@ -55,22 +54,6 @@ data class Place(
@ColumnInfo(name = "radius", defaultValue = "250") @ColumnInfo(name = "radius", defaultValue = "250")
val radius: Int = 250, val radius: Int = 250,
) : Serializable, Parcelable { ) : Serializable, Parcelable {
@Ignore
constructor(o: Place): this(
id = o.id,
uid = o.uid,
name = o.name,
address = o.address,
phone = o.phone,
url = o.url,
latitude = o.latitude,
longitude = o.longitude,
color = o.color,
icon = o.icon,
order = o.order,
radius = o.radius,
)
val displayName: String val displayName: String
get() { get() {
if (!Strings.isNullOrEmpty(name) && !COORDS.matcher(name!!).matches()) { if (!Strings.isNullOrEmpty(name) && !COORDS.matcher(name!!).matches()) {
@ -115,6 +98,5 @@ data class Place(
coordinates.toString() coordinates.toString()
} }
} }
} }
} }
Loading…
Cancel
Save