From e7ab4ac488123d966362cf9c33aba8b5dfb05fbd Mon Sep 17 00:00:00 2001 From: "Vitaliy.Bibaev" Date: Fri, 12 May 2017 17:51:20 +0300 Subject: [PATCH] Minor: inline redundant variable --- .../java/com/intellij/debugger/streams/ui/impl/MappingPane.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/intellij/debugger/streams/ui/impl/MappingPane.kt b/src/main/java/com/intellij/debugger/streams/ui/impl/MappingPane.kt index 889d73a..50036b7 100644 --- a/src/main/java/com/intellij/debugger/streams/ui/impl/MappingPane.kt +++ b/src/main/java/com/intellij/debugger/streams/ui/impl/MappingPane.kt @@ -68,11 +68,10 @@ class MappingPane(name: String, val x2 = x + width g.color = color for (value in beforeValues) { - val position: Int = value.position val linkedValues = mapping.getLinkedValues(value) ?: continue for (nextValue in linkedValues) { if (needToDraw(value, nextValue) && getLineColor(value, nextValue) == color) { - val y1 = position + val y1 = value.position val y2 = nextValue.position g.drawLine(x1, y1, x2, y2)