Skip to content

Commit 24d1934

Browse files
committed
removing a redundant variable
1 parent 81e584a commit 24d1934

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/helpers/ContactsHelper.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class ContactsHelper(val activity: Activity) {
7272
val selectionArgs = getSourcesSelectionArgs(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)
7373
val sortOrder = getSortString()
7474

75-
val names = HashSet<String>()
7675
var cursor: Cursor? = null
7776
try {
7877
cursor = activity.contentResolver.query(uri, projection, selection, selectionArgs, sortOrder)
@@ -90,7 +89,6 @@ class ContactsHelper(val activity: Activity) {
9089
val addresses = ArrayList<Address>()
9190
val events = ArrayList<Event>()
9291
val accountName = cursor.getStringValue(ContactsContract.RawContacts.ACCOUNT_NAME) ?: ""
93-
names.add(accountName)
9492
val starred = cursor.getIntValue(CommonDataKinds.StructuredName.STARRED)
9593
val contactId = cursor.getIntValue(ContactsContract.Data.CONTACT_ID)
9694
val thumbnailUri = cursor.getStringValue(CommonDataKinds.StructuredName.PHOTO_THUMBNAIL_URI) ?: ""

0 commit comments

Comments
 (0)