diff --git a/build.gradle.kts b/build.gradle.kts index f3de3af..4eddb85 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ val kmathVersion: String by extra("0.3.1-dev-10") allprojects { group = "center.sciprog" - version = "0.2.2-dev-5" + version = "0.2.2-dev-6" repositories { mavenLocal() diff --git a/maps-kt-features/src/commonMain/kotlin/center/sciprog/maps/features/FeatureGroup.kt b/maps-kt-features/src/commonMain/kotlin/center/sciprog/maps/features/FeatureGroup.kt index c94beed..092f461 100644 --- a/maps-kt-features/src/commonMain/kotlin/center/sciprog/maps/features/FeatureGroup.kt +++ b/maps-kt-features/src/commonMain/kotlin/center/sciprog/maps/features/FeatureGroup.kt @@ -51,6 +51,10 @@ public data class FeatureGroup( return FeatureRef(safeId, this) } + public fun removeFeature(id: String) { + featureMap.remove(id) + } + // public fun > feature(id: FeatureId, feature: F): FeatureId = feature(id.id, feature) public val features: Collection> get() = featureMap.values.sortedByDescending { it.z }