Skip to content

Commit 3026592

Browse files
committed
Remove unused code: BasicEmotion enum, unused UI colors, unused methods
1 parent ff15025 commit 3026592

10 files changed

Lines changed: 0 additions & 54 deletions

File tree

app/src/main/java/ch/fhnw/pepper_realtime/data/BasicEmotion.kt

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/src/main/java/ch/fhnw/pepper_realtime/data/PerceptionData.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class PerceptionData {
2020
var attentionState: String = "Unknown"
2121
var smileState: String = "Unknown"
2222
var distanceMeters: Double = -1.0
23-
var basicEmotion: BasicEmotion = BasicEmotion.UNKNOWN
2423

2524
// --- Position relative to robot (for bird's eye view) ---
2625
var positionX: Double = 0.0 // Meters in front of robot (positive = in front)

app/src/main/java/ch/fhnw/pepper_realtime/network/HttpClientManager.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,6 @@ class HttpClientManager @Inject constructor() {
128128

129129
// ==================== COROUTINE-BASED API ====================
130130

131-
/**
132-
* Execute a request using the API client as a suspend function.
133-
* This is the preferred way to make network calls in Kotlin code.
134-
*/
135-
suspend fun executeApiRequest(request: Request): Response {
136-
return apiClient.executeAsync(request)
137-
}
138-
139131
/**
140132
* Execute a request using the quick API client as a suspend function.
141133
*/

app/src/main/java/ch/fhnw/pepper_realtime/service/YouTubeSearchService.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
11
package ch.fhnw.pepper_realtime.service
22

33
import android.util.Log
4-
import ch.fhnw.pepper_realtime.di.IoDispatcher
54
import ch.fhnw.pepper_realtime.network.HttpClientManager
6-
import kotlinx.coroutines.CoroutineDispatcher
75
import kotlinx.coroutines.Dispatchers
86
import kotlinx.coroutines.withContext
97
import okhttp3.Request
108
import org.json.JSONObject
119
import java.io.IOException
1210
import java.net.URLEncoder
13-
import javax.inject.Inject
1411

1512
/**
1613
* Service for searching YouTube videos via the YouTube Data API v3.
1714
*/
1815
class YouTubeSearchService(
1916
private val apiKey: String
2017
) {
21-
// Secondary constructor for DI (if needed in future)
22-
@Inject
23-
constructor(
24-
apiKey: String,
25-
@Suppress("UNUSED_PARAMETER") httpClientManager: HttpClientManager,
26-
@Suppress("UNUSED_PARAMETER") @IoDispatcher ioDispatcher: CoroutineDispatcher
27-
) : this(apiKey)
2818
companion object {
2919
private const val TAG = "YouTubeSearchService"
3020
private const val YOUTUBE_API_BASE_URL = "https://www.googleapis.com/youtube/v3/search"

app/src/main/java/ch/fhnw/pepper_realtime/ui/compose/ChatTheme.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ object ChatColors {
3030

3131
// Primary theme colors - Professional Blue
3232
val Primary = Color(0xFF1E40AF)
33-
val PrimaryVariant = Color(0xFF1E3A8A)
3433
}
3534

3635
private val LightColorScheme = lightColorScheme(

app/src/main/java/ch/fhnw/pepper_realtime/ui/compose/EventRulesOverlay.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ private object RulesColors {
4646
val SuccessGreen = Color(0xFF059669)
4747
val DeleteRed = Color(0xFFDC2626)
4848
val WarningOrange = Color(0xFFEA580C)
49-
val BorderColor = Color(0xFFE5E7EB)
5049
val DisabledGray = Color(0xFF9CA3AF)
5150
}
5251

app/src/main/java/ch/fhnw/pepper_realtime/ui/compose/games/DrawingCanvasDialog.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ private object DrawingColors {
4444
val UnsavedIndicator = Color(0xFFFF9800)
4545
val ClearButton = Color(0xFFFF9800)
4646
val CloseButton = Color(0xFFF44336)
47-
val ToolbarBackground = Color(0xFFF5F5F5)
4847

4948
// Available colors for drawing
5049
val PaletteColors = listOf(

app/src/main/java/ch/fhnw/pepper_realtime/ui/compose/games/MelodyPlayerDialog.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import androidx.compose.ui.unit.sp
2020
import ch.fhnw.pepper_realtime.ui.MelodyPlayerState
2121

2222
private object MelodyColors {
23-
val Background = Color(0xFF1A1A2E)
2423
val CardBackground = Color(0xFF16213E)
2524
val AccentPrimary = Color(0xFFE94560)
2625
val AccentSecondary = Color(0xFF0F3460)

app/src/main/java/ch/fhnw/pepper_realtime/ui/compose/games/MemoryGameDialog.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import ch.fhnw.pepper_realtime.ui.MemoryGameInternalState
2929
private object MemoryColors {
3030
val CardFaceDown = Color(0xFF1E40AF) // Professional Blue
3131
val CardFaceUp = Color.White
32-
val TextOnBlue = Color.White
3332
val TextOnWhite = Color.Black
3433
val Background = Color(0xFFF5F5F5)
3534
}

app/src/main/java/ch/fhnw/pepper_realtime/ui/settings/SettingsViewModel.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,6 @@ class SettingsViewModel @Inject constructor(
323323
}
324324
}
325325

326-
fun setGoogleAffectiveDialog(enabled: Boolean) {
327-
if (enabled != settingsRepository.googleAffectiveDialog) {
328-
settingsRepository.googleAffectiveDialog = enabled
329-
_settingsState.update { it.copy(googleAffectiveDialog = enabled) }
330-
triggerGoogleSettingChange()
331-
}
332-
}
333-
334326
fun setGoogleProactiveAudio(enabled: Boolean) {
335327
if (enabled != settingsRepository.googleProactiveAudio) {
336328
settingsRepository.googleProactiveAudio = enabled

0 commit comments

Comments
 (0)