From 1000524e35aaf751bc3d996eead2ccd154fe052e Mon Sep 17 00:00:00 2001 From: Deryck Brown Date: Mon, 30 May 2022 20:07:54 +0100 Subject: [PATCH] Removed unused declarations. --- .../src/main/java/triangle/codeGenerator/Encoder.java | 5 ----- .../src/main/java/triangle/treeDrawer/DrawingTree.java | 1 - 2 files changed, 6 deletions(-) diff --git a/Triangle.Compiler/src/main/java/triangle/codeGenerator/Encoder.java b/Triangle.Compiler/src/main/java/triangle/codeGenerator/Encoder.java index d924d46..f3a650c 100644 --- a/Triangle.Compiler/src/main/java/triangle/codeGenerator/Encoder.java +++ b/Triangle.Compiler/src/main/java/triangle/codeGenerator/Encoder.java @@ -701,11 +701,6 @@ public final class Encoder implements ActualParameterVisitor, writeTableDetails(routineDeclaration); } - private final void elaborateStdRoutine(Declaration routineDeclaration, int routineOffset) { - routineDeclaration.entity = new KnownRoutine(Machine.closureSize, 0, routineOffset); - writeTableDetails(routineDeclaration); - } - private final void elaborateStdEnvironment() { tableDetailsReqd = false; elaborateStdConst(StdEnvironment.falseDecl, Machine.falseRep); diff --git a/Triangle.Compiler/src/main/java/triangle/treeDrawer/DrawingTree.java b/Triangle.Compiler/src/main/java/triangle/treeDrawer/DrawingTree.java index a98c7d6..742eb6f 100644 --- a/Triangle.Compiler/src/main/java/triangle/treeDrawer/DrawingTree.java +++ b/Triangle.Compiler/src/main/java/triangle/treeDrawer/DrawingTree.java @@ -45,7 +45,6 @@ public class DrawingTree { } private final int FIXED_FONT_HEIGHT = 10; - private final int FIXED_FONT_ASCENT = 3; private final Color nodeColor = new Color(250, 220, 100); public void paint(Graphics graphics) {