From f26c6c97047f5fb9dc5a197799924db36925b02a Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Fri, 22 Mar 2024 03:41:02 +0100 Subject: [PATCH] Clean up another obsolete property --- .../liblasercut/drivers/Ruida.java | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/src/main/java/de/thomas_oster/liblasercut/drivers/Ruida.java b/src/main/java/de/thomas_oster/liblasercut/drivers/Ruida.java index 09672293..ed20b87d 100644 --- a/src/main/java/de/thomas_oster/liblasercut/drivers/Ruida.java +++ b/src/main/java/de/thomas_oster/liblasercut/drivers/Ruida.java @@ -180,20 +180,7 @@ public boolean canEstimateJobDuration() return false; } - @Override - public double getRasterPadding() { - return 0; - } - - @Override - public boolean getRasterPaddingAllowOutsideMachineSpace() { - return false; - } - - /** - * When rastering, whether to always cut from left to right, or to cut in both - * directions? (i.e. use the return stroke to raster as well) - */ + // Kept to retain compatibility with older configs @Deprecated protected transient boolean useBidirectionalRastering = true; @Deprecated @@ -201,15 +188,10 @@ public boolean getRasterPaddingAllowOutsideMachineSpace() { @Deprecated private transient boolean allowOutsidePadding; - public boolean getUseBidirectionalRastering() - { - // currently only bidirectional rastering is supported (work mode has to be tested for unidirectional rastering) - return true; - } - - public void setUseBidirectionalRastering(boolean useBidirectionalRastering) - { - this.useBidirectionalRastering = useBidirectionalRastering; + // fixed value of 0 because the sweep move adds all necessary padding + @Override + public double getRasterPadding() { + return 0; } private void find_and_write_bounding_box(LaserJob job) throws IOException @@ -587,7 +569,7 @@ public void writeJobCode(LaserJob job, ProgressListener pl) throws IOException { if ((p instanceof RasterPart) || (p instanceof Raster3dPart)) { engrave = true; - p = convertRasterizableToVectorPart((RasterizableJobPart)p, job, getUseBidirectionalRastering(), true, true); + p = convertRasterizableToVectorPart((RasterizableJobPart)p, job, true, true, true); } /* FALLTHRU */ if (p instanceof VectorPart)