Skip to content

Commit

Permalink
Remove unused class
Browse files Browse the repository at this point in the history
  • Loading branch information
veyndan committed May 8, 2023
1 parent 60b8b51 commit 55cd2d4
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,6 @@ internal fun <T : Any> NullPaddedList<T>.computeDiff(
)
}

private class OffsettingListUpdateCallback internal constructor(
private val offset: Int,
private val callback: ListUpdateCallback
) : ListUpdateCallback {
override fun onInserted(position: Int, count: Int) {
callback.onInserted(position + offset, count)
}

override fun onRemoved(position: Int, count: Int) {
callback.onRemoved(position + offset, count)
}

override fun onMoved(fromPosition: Int, toPosition: Int) {
callback.onMoved(fromPosition + offset, toPosition + offset)
}

override fun onChanged(position: Int, count: Int, payload: Any?) {
callback.onChanged(position + offset, count, payload)
}
}

/**
* See NullPaddedDiffing.md for how this works and why it works that way :).
*
Expand Down

0 comments on commit 55cd2d4

Please sign in to comment.