From 578a012f93027f713e092c1fde63237954166020 Mon Sep 17 00:00:00 2001 From: ariskotsomitopoulos Date: Wed, 1 Dec 2021 16:04:56 +0000 Subject: [PATCH] Remove unused onCleared() from viewModels --- .../app/features/home/room/detail/search/SearchViewModel.kt | 4 ---- .../app/features/roomdirectory/RoomDirectoryViewModel.kt | 4 ---- 2 files changed, 8 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/search/SearchViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/search/SearchViewModel.kt index 70d2af0921..7bff76cc36 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/search/SearchViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/search/SearchViewModel.kt @@ -141,8 +141,4 @@ class SearchViewModel @AssistedInject constructor( ) } } - - override fun onCleared() { - super.onCleared() - } } diff --git a/vector/src/main/java/im/vector/app/features/roomdirectory/RoomDirectoryViewModel.kt b/vector/src/main/java/im/vector/app/features/roomdirectory/RoomDirectoryViewModel.kt index 68e12dd3f4..431dba21cf 100644 --- a/vector/src/main/java/im/vector/app/features/roomdirectory/RoomDirectoryViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/roomdirectory/RoomDirectoryViewModel.kt @@ -231,8 +231,4 @@ class RoomDirectoryViewModel @AssistedInject constructor( } } } - - override fun onCleared() { - super.onCleared() - } }