Skip to content

Commit bbf4f9f

Browse files
committed
Remove unused onStartChatClick callback from WelcomeScreen
1 parent aa16547 commit bbf4f9f

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/WelcomeActivity.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ class WelcomeActivity : ComponentActivity() {
5656
},
5757
onAppSettingsClick = {
5858
startActivity(Intent(this@WelcomeActivity, AppSettingsActivity::class.java))
59-
},
60-
onStartChatClick = {
61-
startActivity(Intent(this@WelcomeActivity, MainActivity::class.java))
6259
}
6360
)
6461
}

llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/ui/screens/WelcomeScreen.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ import com.example.executorchllamademo.ui.theme.LocalAppColors
4343
fun WelcomeScreen(
4444
onLoadModelClick: () -> Unit = {},
4545
onDownloadModelClick: () -> Unit = {},
46-
onAppSettingsClick: () -> Unit = {},
47-
onStartChatClick: () -> Unit = {}
46+
onAppSettingsClick: () -> Unit = {}
4847
) {
4948
val appColors = LocalAppColors.current
5049
val scrollState = rememberScrollState()

0 commit comments

Comments
 (0)