From c996f14e837fbe3bf30b8d86b67476af1a5eba6f Mon Sep 17 00:00:00 2001 From: Matt King Date: Mon, 29 Jul 2024 06:52:43 +0100 Subject: [PATCH] Remove FieldOrientation --- src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt | 9 --------- .../kotlin/info/mking/k2zpl/command/FieldOrientation.kt | 8 -------- 2 files changed, 17 deletions(-) delete mode 100644 src/main/kotlin/info/mking/k2zpl/command/FieldOrientation.kt diff --git a/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt b/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt index 8db3009..ab2df9e 100644 --- a/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt +++ b/src/main/kotlin/info/mking/k2zpl/builder/Extensions.kt @@ -4,7 +4,6 @@ package info.mking.k2zpl.builder import info.mking.k2zpl.command.EndFormat import info.mking.k2zpl.command.FieldData -import info.mking.k2zpl.command.FieldOrientation import info.mking.k2zpl.command.FieldOrigin import info.mking.k2zpl.command.FieldSeparator import info.mking.k2zpl.command.GraphicField @@ -19,14 +18,6 @@ import info.mking.k2zpl.command.options.ZplFont import info.mking.k2zpl.command.options.ZplPrintSpeed import info.mking.k2zpl.command.options.ZplYesNo -/** - * Sets the field orientation for text fields. - * @param orientation The orientation of the field. - */ -fun ZplBuilder.defaultFieldOrientation(orientation: ZplFieldOrientation) { - command(command = FieldOrientation(orientation = orientation)) -} - /** * Sets the print rate. * @param speed The print speed. diff --git a/src/main/kotlin/info/mking/k2zpl/command/FieldOrientation.kt b/src/main/kotlin/info/mking/k2zpl/command/FieldOrientation.kt deleted file mode 100644 index bc93829..0000000 --- a/src/main/kotlin/info/mking/k2zpl/command/FieldOrientation.kt +++ /dev/null @@ -1,8 +0,0 @@ -package info.mking.k2zpl.command - -import info.mking.k2zpl.command.options.ZplFieldOrientation - -internal data class FieldOrientation(val orientation: ZplFieldOrientation) : ZplCommand { - override val command: CharSequence = "^FW" - override val parameters: LinkedHashMap = linkedMapOf("o" to orientation.code) -} \ No newline at end of file