Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 78d42d5

Browse files
committed
chore: Deleted deprecated code
I just realized 1.0.0 has not been released XD
1 parent 7437d30 commit 78d42d5

4 files changed

Lines changed: 4 additions & 148 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "org.cufy"
9-
version = "1.0-SNAPSHOT"
9+
version = "1.0.0"
1010

1111
repositories {
1212
mavenCentral()

src/main/kotlin/WeakProperty.kt

Lines changed: 0 additions & 114 deletions
This file was deleted.

src/main/kotlin/Weakness.kt

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -45,39 +45,9 @@ open class Weakness {
4545
* the given [instance] in this weakness
4646
* instance.
4747
*
48-
* @since 1.0.1
48+
* @since 1.0.0
4949
*/
5050
operator fun get(instance: Any): MutableMap<String, Any?> {
5151
return map.getOrPut(instance) { mutableMapOf() }
5252
}
53-
54-
/**
55-
* Get the value associated with the given
56-
* [name] in for the given [instance].
57-
*
58-
* @since 1.0.0
59-
*/
60-
@Deprecated(
61-
"Old Weakness API. Will be removed on 2.0.0",
62-
ReplaceWith("get(instance).get(name)"),
63-
DeprecationLevel.WARNING
64-
)
65-
operator fun get(instance: Any, name: String): Any? {
66-
return this[instance][name]
67-
}
68-
69-
/**
70-
* Associate the given [value] to the
71-
* given [name] in for the given [instance].
72-
*
73-
* @since 1.0.0
74-
*/
75-
@Deprecated(
76-
"Old Weakness API",
77-
ReplaceWith("get(instance).set(name, value)"),
78-
DeprecationLevel.WARNING
79-
)
80-
operator fun set(instance: Any, name: String, value: Any?) {
81-
this[instance][name] = value
82-
}
8353
}

src/main/kotlin/weak.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import kotlin.reflect.jvm.jvmErasure
2626
* @param defaultType pass to override the property type.
2727
* @param defaultValue a function to lazily initialize
2828
* the field with.
29-
* @since 1.1.0
29+
* @since 1.0.0
3030
*/
3131
fun <T> weak(
3232
defaultName: String? = null,
@@ -57,7 +57,7 @@ fun <T> weak(
5757
* @param weakness the weakness instance.
5858
* @param defaultValue a function to lazily initialize
5959
* the field with.
60-
* @since 1.1.0
60+
* @since 1.0.0
6161
*/
6262
fun <T> weak(
6363
weakness: Weakness,

0 commit comments

Comments
 (0)