diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Constants.kt index d48f72f0e..b3ee11732 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Constants.kt @@ -137,6 +137,3 @@ const val SOURCE_SIMPLE_CALENDAR = "simple-calendar" const val SOURCE_IMPORTED_ICS = "imported-ics" const val SOURCE_CONTACT_BIRTHDAY = "contact-birthday" const val SOURCE_CONTACT_ANNIVERSARY = "contact-anniversary" - -// deprecated -const val SOURCE_GOOGLE_CALENDAR = 1 diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt index 8d1424cee..c74bce1c7 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/DBHelper.kt @@ -38,7 +38,6 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont private val COL_LAST_UPDATED = "last_updated" private val COL_EVENT_SOURCE = "event_source" private val COL_LOCATION = "location" - private val COL_SOURCE = "source" // deprecated private val META_TABLE_NAME = "events_meta" private val COL_EVENT_ID = "event_id" @@ -65,9 +64,9 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont private val mDb: SQLiteDatabase = writableDatabase companion object { - private val DB_VERSION = 19 - val DB_NAME = "events.db" - val REGULAR_EVENT_TYPE_ID = 1 + private const val DB_VERSION = 19 + const val DB_NAME = "events.db" + const val REGULAR_EVENT_TYPE_ID = 1 var dbInstance: DBHelper? = null fun newInstance(context: Context): DBHelper {