Pill: Removed unused NONE variant

This commit is contained in:
Yan Zhulanow
2020-09-03 19:57:23 +09:00
parent a355d82b37
commit c2cbbc5aba
3 changed files with 1 additions and 11 deletions
@@ -21,11 +21,6 @@ open class PillExtension {
override val includes = setOf(BASE, FULL)
},
// Do not import the project to JPS model, but set some options for it
NONE {
override val includes = emptySet<Variant>()
},
// 'BASE' if the "jps-compatible" plugin is applied, 'NONE' otherwise
DEFAULT {
override val includes = emptySet<Variant>()
@@ -86,7 +86,7 @@ class JpsCompatiblePluginTasks(private val rootProject: Project, private val pla
rootProject.logger.lifecycle("Pill: Setting up project for the '${variant.name.toLowerCase()}' variant...")
if (variant == PillExtensionMirror.Variant.NONE || variant == PillExtensionMirror.Variant.DEFAULT) {
if (variant == PillExtensionMirror.Variant.DEFAULT) {
rootProject.logger.error("'none' and 'default' should not be passed as a Pill variant property value")
return
}
@@ -22,11 +22,6 @@ open class PillExtensionMirror(variant: String, val excludedDirs: List<File>) {
override val includes = setOf(BASE, FULL)
},
// Do not import the project to JPS model, but set some options for it
NONE {
override val includes = emptySet<Variant>()
},
// 'BASE' if the "jps-compatible" plugin is applied, 'NONE' otherwise
DEFAULT {
override val includes = emptySet<Variant>()