Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit 92df1df

Browse files
remove unused code block
1 parent db97450 commit 92df1df

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

android/canonical/app/src/main/java/com/google/samples/quickstart/canonical/ProfileViewModel.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class ProfileViewModel : ViewModel() {
3939
private lateinit var runCollectionRef : CollectionReference
4040
private lateinit var curAppUser: AppUser
4141
private var runHistoryListForView: ArrayList<SingleRun> = ArrayList()
42-
// private var timeHMSString: MutableLiveData<String> = MutableLiveData(DEFAULT_TIME)
4342

4443
private fun getUid() : String {
4544
return curAppUser.uid
@@ -93,14 +92,6 @@ class ProfileViewModel : ViewModel() {
9392
return millionSeconds.div(4500)
9493
}
9594

96-
// private fun setTimeHMSString() {
97-
// val ms = getTotalTimeMillisecond()
98-
// val hms = ms ?.let{convertMStoStringHMS(ms)} ?: run { DEFAULT_TIME }
99-
// timeHMSString.value = hms
100-
// Log.d(PROFILE_VM_TAG, "setTimeHMSString hms: $hms")
101-
// }
102-
103-
10495
private fun syncAppUserStatistic() {
10596
runUserDocRef.get()
10697
.addOnSuccessListener {document ->
@@ -110,7 +101,6 @@ class ProfileViewModel : ViewModel() {
110101
setTotalTimeMillisecond(document.data!![KEY_TOTAL_TIME_MS] as Long)
111102
setRunHistoryList(document.data!![KEY_RUN_HISTORY] as ArrayList<HashMap<String, Any>>)
112103
setRunHistoryListForView()
113-
// setTimeHMSString()
114104
}
115105
.addOnFailureListener {
116106
Log.w(PROFILE_VM_TAG, "Get doc Failed")

0 commit comments

Comments
 (0)