package seedu.address.commons.util;

import javafx.scene.Node;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

/**
 * Contains utility methods for JavaFX views
 */
public class FxViewUtil {

    public static void applyAnchorBoundaryParameters(Node node, double left, double right, double top, double bottom) {
        AnchorPane.setBottomAnchor(node, bottom);
        AnchorPane.setLeftAnchor(node, left);
        AnchorPane.setRightAnchor(node, right);
        AnchorPane.setTopAnchor(node, top);
    }

    /**
     * Sets the given image as the icon for the given stage.
     * @param stage
     * @param iconSource e.g. {@code "/images/help_icon.png"}
     */
    public static void setStageIcon(Stage stage, String iconSource) {
        stage.getIcons().add(AppUtil.getImage(iconSource));
    }

}

@@ -34,73 +34,8 @@
 l;%0A%0A
-import javafx.scene.Node;%0Aimport javafx.scene.layout.AnchorPane;%0A
 impo
@@ -142,323 +142,8 @@
  %7B%0A%0A
-    public static void applyAnchorBoundaryParameters(Node node, double left, double right, double top, double bottom) %7B%0A        AnchorPane.setBottomAnchor(node, bottom);%0A        AnchorPane.setLeftAnchor(node, left);%0A        AnchorPane.setRightAnchor(node, right);%0A        AnchorPane.setTopAnchor(node, top);%0A    %7D%0A%0A
     

remove dead code