diff --git a/buildSrc/src/main/kotlin/karakum/browser/IDL.kt b/buildSrc/src/main/kotlin/karakum/browser/IDL.kt index d6adb2b73..bb4e7cac5 100644 --- a/buildSrc/src/main/kotlin/karakum/browser/IDL.kt +++ b/buildSrc/src/main/kotlin/karakum/browser/IDL.kt @@ -165,15 +165,11 @@ internal object IDLRegistry { .removePrefix("unrestricted ") .substringBefore(" = ") - var type = getNumberType(data.substringBeforeLast(" ").removeSuffix("?")) + val type = getNumberType(data.substringBeforeLast(" ").removeSuffix("?")) ?: return emptySequence() val name = data.substringAfterLast(" ") - // TEMP - if ((name == "length" || name == "size") && type == "UInt") - type = "Int" - return sequenceOf( PropertyData( className = className, @@ -200,15 +196,10 @@ internal object IDLRegistry { .map { it.substringAfter("] ") } .map { it.removePrefix("optional ") } .mapNotNull { psource -> - var type = getNumberType(psource.substringBeforeLast(" ").removeSuffix("?")) + val type = getNumberType(psource.substringBeforeLast(" ").removeSuffix("?")) ?: return@mapNotNull null val name = psource.substringAfterLast(" ") - - // TEMP - if (name == "index" && type == "UInt") - type = "Int" - ParameterData( className = className, methodName = methodName,