Code cleanup

This commit is contained in:
Robinson 2023-01-29 23:09:24 +01:00
parent 33369f4be7
commit 9f106c4d93
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ internal class AsApplicationLAF(notification: Notify, notifyCanvas: NotifyCanvas
anchorY = getAnchorY(position, parentBounds)
}
@Suppress("DuplicatedCode")
private fun getAnchorX(position: Position, bounds: Rectangle): Int {
// we use the screen that the mouse is currently on.
val startX = 0

View File

@ -37,6 +37,7 @@ internal class AsDesktopLAF(notification: Notify, notifyCanvas: NotifyCanvas, pr
anchorY = getAnchorY(position, parentBounds)
}
@Suppress("DuplicatedCode")
private fun getAnchorX(position: Position, bounds: Rectangle): Int {
// we use the screen that the mouse is currently on.
val startX = bounds.getX().toInt()