Skip to content

Commit

Permalink
refactor: removed not implemented declarations (TODO functions)
Browse files Browse the repository at this point in the history
  • Loading branch information
joragua committed Jan 23, 2025
1 parent 57fd55b commit 9dc49a2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,23 +585,23 @@ class FileDetailsFragment : FileFragment() {
}

override fun updateViewForSyncInProgress() {
TODO("Not yet implemented")
// Not yet implemented
}

override fun updateViewForSyncOff() {
TODO("Not yet implemented")
// Not yet implemented
}

override fun onFileMetadataChanged(updatedFile: OCFile?) {
// Nothing to do here. We are observing the oCFile from database, so it should be refreshed automatically
}

override fun onFileMetadataChanged() {
TODO("Not yet implemented")
// Not yet implemented
}

override fun onFileContentChanged() {
TODO("Not yet implemented")
// Not yet implemented
}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.firstOrNull
import kotlinx.coroutines.flow.flatMapLatest
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.stateIn
import kotlinx.coroutines.flow.update
Expand Down Expand Up @@ -368,7 +369,7 @@ class MainFileListViewModel(
FileListOption.ALL_FILES -> retrieveFlowForAllFiles(currentFolderDisplayed, currentFolderDisplayed.owner)
FileListOption.SHARED_BY_LINK -> retrieveFlowForShareByLink(currentFolderDisplayed, currentFolderDisplayed.owner)
FileListOption.AV_OFFLINE -> retrieveFlowForAvailableOffline(currentFolderDisplayed, currentFolderDisplayed.owner)
FileListOption.SPACES_LIST -> TODO()
FileListOption.SPACES_LIST -> flow {}
}.toFileListUiState(
currentFolderDisplayed,
fileListOption,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1351,8 +1351,8 @@ class FileDisplayActivity : FileActivity(),
}

is SynchronizeFileUseCase.SyncType.UploadEnqueued -> showSnackMessage(getString(R.string.upload_enqueued_msg))

null -> TODO()
null -> { // Nothing to do
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class OCLocalFileDataSource(
}

override fun saveUploadWorkerUuid(fileId: Long, workerUuid: UUID) {
TODO("Not yet implemented")
// Not yet implemented
}

override fun saveDownloadWorkerUuid(fileId: Long, workerUuid: UUID) {
Expand Down

0 comments on commit 9dc49a2

Please sign in to comment.