diff --git a/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/Group.kt b/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/Group.kt deleted file mode 100644 index 49bc7a58c1..0000000000 --- a/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/Group.kt +++ /dev/null @@ -1,16 +0,0 @@ -package net.pantasystem.milktea.setting.viewmodel - -import android.content.Context -import androidx.annotation.StringRes - -class Group( - @StringRes val titleStringRes: Int?, - val items: List, - val context: Context -) : Shared { - val title: String = if(titleStringRes == null){ - "" - }else{ - context.getString(titleStringRes) - } -} \ No newline at end of file diff --git a/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/Shared.kt b/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/Shared.kt deleted file mode 100644 index df67d23af5..0000000000 --- a/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/Shared.kt +++ /dev/null @@ -1,3 +0,0 @@ -package net.pantasystem.milktea.setting.viewmodel - -interface Shared \ No newline at end of file diff --git a/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/SharedItem.kt b/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/SharedItem.kt deleted file mode 100644 index 22d94aa7c4..0000000000 --- a/modules/features/setting/src/main/java/net/pantasystem/milktea/setting/viewmodel/SharedItem.kt +++ /dev/null @@ -1,7 +0,0 @@ -package net.pantasystem.milktea.setting.viewmodel - -abstract class SharedItem: Shared { - abstract val key: String - abstract val titleStringRes: Int - -} \ No newline at end of file diff --git a/modules/features/user/src/main/java/net/pantasystem/milktea/user/helper/FollowStateHelper.kt b/modules/features/user/src/main/java/net/pantasystem/milktea/user/helper/FollowStateHelper.kt deleted file mode 100644 index aa3bea2732..0000000000 --- a/modules/features/user/src/main/java/net/pantasystem/milktea/user/helper/FollowStateHelper.kt +++ /dev/null @@ -1,39 +0,0 @@ -package net.pantasystem.milktea.user.helper - -import android.widget.Button -import androidx.databinding.BindingAdapter -import net.pantasystem.milktea.model.user.FollowState -import net.pantasystem.milktea.user.R - -object FollowStateHelper { - - @JvmStatic - @BindingAdapter("isFollowing") - fun Button.setFollowState(isFollowing: Boolean){ - this.text = if(isFollowing){ - context.getString(R.string.following) - }else{ - context.getString(R.string.follow) - } - } - - @JvmStatic - @BindingAdapter("followState") - fun Button.setFollowState(state: FollowState?) { - state?: return - this.text = when(state) { - FollowState.FOLLOWING -> { - context.getString(R.string.unfollow) - } - FollowState.UNFOLLOWING -> { - context.getString(R.string.follow) - } - FollowState.UNFOLLOWING_LOCKED -> { - context.getString(R.string.request_follow_from_u) - } - FollowState.PENDING_FOLLOW_REQUEST -> { - context.getString(R.string.follow_approval_pending) - } - } - } -} \ No newline at end of file