diff --git a/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt b/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt index a4a826c..481081d 100644 --- a/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt +++ b/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt @@ -8,7 +8,6 @@ import info.mking.k2zpl.command.FieldOrigin import info.mking.k2zpl.command.FieldSeparator import info.mking.k2zpl.command.GraphicField import info.mking.k2zpl.command.LabelLength -import info.mking.k2zpl.command.MediaDarkness import info.mking.k2zpl.command.PrintQuantity import info.mking.k2zpl.command.StartFormat import info.mking.k2zpl.command.ZplCommand @@ -16,14 +15,6 @@ import info.mking.k2zpl.command.options.ZplFieldOrientation import info.mking.k2zpl.command.options.ZplFont import info.mking.k2zpl.command.options.ZplYesNo -/** - * Sets the media darkness. - * @param darkness The darkness level. - */ -fun ZplBuilder.defaultMediaDarkness(darkness: Int) { - command(MediaDarkness(darkness = darkness)) -} - /** * Sets the origin for a field. * @param x The x-coordinate of the field origin. diff --git a/src/main/kotlin/info/mking/k2zpl/command/MediaDarkness.kt b/src/main/kotlin/info/mking/k2zpl/command/MediaDarkness.kt deleted file mode 100644 index 9d97358..0000000 --- a/src/main/kotlin/info/mking/k2zpl/command/MediaDarkness.kt +++ /dev/null @@ -1,10 +0,0 @@ -package info.mking.k2zpl.command - -internal data class MediaDarkness(val darkness: Int) : ZplCommand { - init { - require(darkness in 0..30) { "Darkness must be between 0 and 30" } - } - - override val command: CharSequence = "^MD" - override val parameters: LinkedHashMap = linkedMapOf("d" to darkness) -} \ No newline at end of file