diff --git a/js/js.libraries/src/core/javautil.kt b/js/js.libraries/src/core/javautil.kt deleted file mode 100644 index 001db444179..00000000000 --- a/js/js.libraries/src/core/javautil.kt +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2010-2016 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.util - - -// TODO: Not supported -// typealias Date = kotlin.js.Date - -@Deprecated("Use kotlin.js.Date instead", ReplaceWith("kotlin.js.Date"), level = DeprecationLevel.ERROR) -public external class Date() { - public fun getTime(): Int -} - -@Deprecated("Use kotlin.collections.RandomAccess instead", ReplaceWith("kotlin.collections.RandomAccess"), level = DeprecationLevel.ERROR) -public typealias RandomAccess = kotlin.collections.RandomAccess -@Deprecated("Use kotlin.collections.ArrayList instead", ReplaceWith("kotlin.collections.ArrayList"), level = DeprecationLevel.ERROR) -public typealias ArrayList = kotlin.collections.ArrayList -@Deprecated("Use kotlin.collections.HashSet instead", ReplaceWith("kotlin.collections.HashSet"), level = DeprecationLevel.ERROR) -public typealias HashSet = kotlin.collections.HashSet -@Deprecated("Use kotlin.collections.LinkedHashSet instead", ReplaceWith("kotlin.collections.LinkedHashSet"), level = DeprecationLevel.ERROR) -public typealias LinkedHashSet = kotlin.collections.LinkedHashSet -@Deprecated("Use kotlin.collections.HashMap instead", ReplaceWith("kotlin.collections.HashMap"), level = DeprecationLevel.ERROR) -public typealias HashMap = kotlin.collections.HashMap -@Deprecated("Use kotlin.collections.LinkedHashMap instead", ReplaceWith("kotlin.collections.LinkedHashMap"), level = DeprecationLevel.ERROR) -public typealias LinkedHashMap = kotlin.collections.LinkedHashMap - -@Deprecated("Use AbstractCollection or AbstractMutableCollection from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableCollection"), level = DeprecationLevel.ERROR) -public abstract class AbstractCollection : kotlin.collections.AbstractMutableCollection() { - override fun add(element: E): Boolean = throw UnsupportedOperationException() -} - -@Deprecated("Use AbstractList or AbstractMutableList from kotlin.collections", ReplaceWith("kotlin.collections.AbstractMutableList"), level = DeprecationLevel.ERROR) -public abstract class AbstractList : kotlin.collections.AbstractMutableList() { - override fun add(index: Int, element: E): Unit = throw UnsupportedOperationException() - override fun removeAt(index: Int): E = throw UnsupportedOperationException() - override fun set(index: Int, element: E): E = throw UnsupportedOperationException() -}