Skip to content

Commit 8756387

Browse files
committed
Remove unused variables
1 parent abe8f78 commit 8756387

File tree

1 file changed

+3
-7
lines changed
  • fluent.syntax/src/main/kotlin/org/projectfluent/syntax/processor

1 file changed

+3
-7
lines changed

fluent.syntax/src/main/kotlin/org/projectfluent/syntax/processor/Processor.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ package org.projectfluent.syntax.processor
33
import org.projectfluent.syntax.ast.* // ktlint-disable no-wildcard-imports
44
import java.lang.Exception
55

6-
private val special =
7-
"""\\(([\\"])|(u[0-9a-fA-F]{4}))""".toRegex()
8-
96
/**
107
* Process patterns by returning new patterns with elements transformed.
118
*/
@@ -162,16 +159,15 @@ class Processor {
162159
}
163160
}
164161

162+
private val special =
163+
"""\\(([\\"])|(u[0-9a-fA-F]{4}))""".toRegex()
164+
165165
private fun unescape(matchResult: MatchResult): CharSequence {
166166
val matches = matchResult.groupValues.drop(2).listIterator()
167167
val simple = matches.next()
168168
if (simple != "") { return simple }
169169
val uni4 = matches.next()
170170
if (uni4 != "") {
171-
val a = uni4.substring(1).toInt(16)
172-
val b = a.toChar()
173-
val c = b.toString()
174-
val d = a.toString()
175171
return uni4.substring(1).toInt(16).toChar().toString()
176172
}
177173
throw Exception("Unexpected")

0 commit comments

Comments
 (0)