Skip to content

Commit

Permalink
Remove unused DiffCache.clear function
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Oct 15, 2024
1 parent fdf4771 commit beb074a
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ interface MutableDiffCache<E> : DiffCache<E> {
fun removeAt(index: Int): E?
fun add(index: Int, element: E?)
operator fun set(index: Int, element: E?)
fun clear()
}

/**
Expand Down Expand Up @@ -55,8 +54,4 @@ class MutableListDiffCache<E>(private val mutableList: MutableList<E?> = ArrayLi
override fun add(index: Int, element: E?) {
mutableList.add(index, element)
}

override fun clear() {
mutableList.clear()
}
}

0 comments on commit beb074a

Please sign in to comment.