Remove middleVisibleRow from RSCore, which is no longer used.

This commit is contained in:
Brent Simmons committed 2026-10-31 15:46:19 -07:00
1 parent ce90c7390f
commit e0096cd2a4
2 files changed
-14

No files matched your search

@@ -34,13 +34,6 @@ extension UICollectionView {
scrollToItem(at: indexPath, at: .centeredVertically, animated: animations.contains(.scroll))
}
public func middleVisibleRow() -> IndexPath? {
if indexPathsForVisibleItems.count > 2 {
return indexPathsForVisibleItems[indexPathsForVisibleItems.count / 2]
}
return nil
}
}
#endif
@@ -34,13 +34,6 @@ public extension UITableView {
let rect = rectForRow(at: indexPath)
return safeAreaLayoutGuide.layoutFrame.contains(rect)
}
func middleVisibleRow() -> IndexPath? {
if let visibleIndexPaths = indexPathsForRows(in: safeAreaLayoutGuide.layoutFrame), visibleIndexPaths.count > 2 {
return visibleIndexPaths[visibleIndexPaths.count / 2]
}
return nil
}
}
#endif