From 9f106c4d9363ba1fe7d47ff19de9dc4808911809 Mon Sep 17 00:00:00 2001 From: Robinson Date: Sun, 29 Jan 2023 23:09:24 +0100 Subject: [PATCH] Code cleanup --- src/dorkbox/notify/AsApplicationLAF.kt | 1 + src/dorkbox/notify/AsDesktopLAF.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/src/dorkbox/notify/AsApplicationLAF.kt b/src/dorkbox/notify/AsApplicationLAF.kt index a01b42d..9d29987 100755 --- a/src/dorkbox/notify/AsApplicationLAF.kt +++ b/src/dorkbox/notify/AsApplicationLAF.kt @@ -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 diff --git a/src/dorkbox/notify/AsDesktopLAF.kt b/src/dorkbox/notify/AsDesktopLAF.kt index 6e95d0f..203835b 100755 --- a/src/dorkbox/notify/AsDesktopLAF.kt +++ b/src/dorkbox/notify/AsDesktopLAF.kt @@ -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()