From ed87f1c09f6cc28b16bd6e8e68ad4accd8555d48 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Tue, 6 Jan 2026 21:41:01 +0100 Subject: [PATCH] fix(client/print): remove obsolete code & +notimplexception --- .../src/main/java/client/scenes/FoodpalApplicationCtrl.java | 5 ----- .../src/main/java/client/scenes/recipe/RecipeDetailCtrl.java | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java b/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java index 4877fc1..26bb18d 100644 --- a/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java +++ b/client/src/main/java/client/scenes/FoodpalApplicationCtrl.java @@ -326,11 +326,6 @@ public class FoodpalApplicationCtrl implements LocaleAware { this.recipeDetailController.setVisible(true); } - @FXML - private void makePrintable() { - System.out.println("Recipe printed"); - } - /** * Clones a recipe, when clicking on the button "clone". */ diff --git a/client/src/main/java/client/scenes/recipe/RecipeDetailCtrl.java b/client/src/main/java/client/scenes/recipe/RecipeDetailCtrl.java index f4d61d2..0675407 100644 --- a/client/src/main/java/client/scenes/recipe/RecipeDetailCtrl.java +++ b/client/src/main/java/client/scenes/recipe/RecipeDetailCtrl.java @@ -23,6 +23,7 @@ import javafx.scene.input.KeyCode; import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; import javafx.scene.text.Font; +import org.apache.commons.lang3.NotImplementedException; /** * Controller for the recipe detail view. @@ -250,7 +251,8 @@ public class RecipeDetailCtrl implements LocaleAware { @FXML private void printRecipe() { // TODO: actually make it print? - System.out.println("Recipe printed"); + throw new NotImplementedException("TODO:: Integrate with Print/Export service"); + // System.out.println("Recipe printed"); } /**