change: Remove unused code (#1044)

This commit is contained in:
Nik Clayton 2024-10-23 15:16:07 +02:00 committed by GitHub
parent 2bdab8bec9
commit 5a35009e35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 15 deletions

View File

@ -22,7 +22,6 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import androidx.preference.PreferenceManager
import app.pachli.core.activity.databinding.ItemAutocompleteAccountBinding
import app.pachli.core.database.model.AccountEntity
import app.pachli.core.designsystem.R as DR
@ -42,8 +41,6 @@ class AccountSelectionAdapter(
val account = getItem(position)
if (account != null) {
val pm = PreferenceManager.getDefaultSharedPreferences(binding.avatar.context)
binding.username.text = account.fullName
binding.displayName.text = account.displayName.emojify(account.emojis, binding.displayName, animateEmojis)
binding.avatarBadge.visibility = View.GONE // We never want to display the bot badge here

View File

@ -255,17 +255,6 @@ class AccountManager @Inject constructor(
}
}
/**
* Finds an account by its string identifier
* @param identifier the string identifier of the account
* @return the requested account or null if it was not found
*/
fun getAccountByIdentifier(identifier: String): AccountEntity? {
return accounts.find {
identifier == it.identifier
}
}
/**
* @return true if the name of the currently-selected account should be displayed in UIs
*/

View File

@ -17,7 +17,6 @@
package app.pachli.core.network.model
import android.app.Application
import android.text.SpannableStringBuilder
import android.text.style.URLSpan
import app.pachli.core.common.extensions.getOrElse