mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 02:42:54 +00:00
Remove middleVisibleRow from RSCore, which is no longer used.
This commit is contained in:
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
|
||||
Reference in new issue
Block a user