Minor cleanup: remove unused condition
This commit is contained in:
@@ -240,9 +240,7 @@ class GeneratePrimitives(out: PrintWriter) : BuiltInsSourceGenerator(out) {
|
|||||||
|
|
||||||
private fun generateRangeTo(thisKind: PrimitiveType) {
|
private fun generateRangeTo(thisKind: PrimitiveType) {
|
||||||
for (otherKind in PrimitiveType.onlyNumeric) {
|
for (otherKind in PrimitiveType.onlyNumeric) {
|
||||||
val returnType =
|
val returnType = maxByDomainCapacity(maxByDomainCapacity(thisKind, otherKind), PrimitiveType.INT)
|
||||||
maxByDomainCapacity(thisKind, otherKind)
|
|
||||||
.let { if (it == PrimitiveType.CHAR) it else maxByDomainCapacity(it, PrimitiveType.INT) }
|
|
||||||
if (returnType == PrimitiveType.DOUBLE || returnType == PrimitiveType.FLOAT)
|
if (returnType == PrimitiveType.DOUBLE || returnType == PrimitiveType.FLOAT)
|
||||||
continue
|
continue
|
||||||
out.println(" /** Creates a range from this value to the specified [other] value. */")
|
out.println(" /** Creates a range from this value to the specified [other] value. */")
|
||||||
|
|||||||
Reference in New Issue
Block a user