Remove toInt() conversion as it's hardly required.

#KT-14789
This commit is contained in:
Ilya Gorbunov
2016-10-07 04:53:57 +03:00
parent 8de67d039b
commit 09072f6cdc
2 changed files with 0 additions and 11 deletions
@@ -24,16 +24,6 @@ public class KotlinVersion(val major: Int, val minor: Int, val patch: Int) : Com
return major shl 16 + minor shl 8 + patch
}
/**
* Returns the integer representation of this version.
*
* Integer representations of two [KotlinVersion] instances can be compared,
* so that if `v1.toInt() > v2.toInt()` then `v1 > v2`.
*
* This value should not be persisted, as it can change between program runs.
*/
public fun toInt(): Int = version
/**
* Returns the string representation of this version
*/
@@ -17,7 +17,6 @@ public final class kotlin/KotlinVersion : java/lang/Comparable {
public fun hashCode ()I
public final fun isAtLeast (II)Z
public final fun isAtLeast (III)Z
public final fun toInt ()I
public fun toString ()Ljava/lang/String;
}