Skip to content

Commit

Permalink
Minor: inline redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bibaev committed May 12, 2017
1 parent aca4461 commit e7ab4ac
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e7ab4ac

Please sign in to comment.