remove some deprecated constants
This commit is contained in:
parent
bf179350e8
commit
829fd61ec2
|
@ -137,6 +137,3 @@ const val SOURCE_SIMPLE_CALENDAR = "simple-calendar"
|
||||||
const val SOURCE_IMPORTED_ICS = "imported-ics"
|
const val SOURCE_IMPORTED_ICS = "imported-ics"
|
||||||
const val SOURCE_CONTACT_BIRTHDAY = "contact-birthday"
|
const val SOURCE_CONTACT_BIRTHDAY = "contact-birthday"
|
||||||
const val SOURCE_CONTACT_ANNIVERSARY = "contact-anniversary"
|
const val SOURCE_CONTACT_ANNIVERSARY = "contact-anniversary"
|
||||||
|
|
||||||
// deprecated
|
|
||||||
const val SOURCE_GOOGLE_CALENDAR = 1
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||||
private val COL_LAST_UPDATED = "last_updated"
|
private val COL_LAST_UPDATED = "last_updated"
|
||||||
private val COL_EVENT_SOURCE = "event_source"
|
private val COL_EVENT_SOURCE = "event_source"
|
||||||
private val COL_LOCATION = "location"
|
private val COL_LOCATION = "location"
|
||||||
private val COL_SOURCE = "source" // deprecated
|
|
||||||
|
|
||||||
private val META_TABLE_NAME = "events_meta"
|
private val META_TABLE_NAME = "events_meta"
|
||||||
private val COL_EVENT_ID = "event_id"
|
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
|
private val mDb: SQLiteDatabase = writableDatabase
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private val DB_VERSION = 19
|
private const val DB_VERSION = 19
|
||||||
val DB_NAME = "events.db"
|
const val DB_NAME = "events.db"
|
||||||
val REGULAR_EVENT_TYPE_ID = 1
|
const val REGULAR_EVENT_TYPE_ID = 1
|
||||||
var dbInstance: DBHelper? = null
|
var dbInstance: DBHelper? = null
|
||||||
|
|
||||||
fun newInstance(context: Context): DBHelper {
|
fun newInstance(context: Context): DBHelper {
|
||||||
|
|
Loading…
Reference in New Issue