From 3bce23b676703b5cbc15485cc0f92f7c777563d8 Mon Sep 17 00:00:00 2001 From: Steffen Deusch Date: Sat, 9 Nov 2024 15:30:44 +0100 Subject: [PATCH] remove dead code found by type system --- test/phoenix/live_dashboard/reingold_tilford_test.exs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/phoenix/live_dashboard/reingold_tilford_test.exs b/test/phoenix/live_dashboard/reingold_tilford_test.exs index 7c09e809..9d3ad288 100644 --- a/test/phoenix/live_dashboard/reingold_tilford_test.exs +++ b/test/phoenix/live_dashboard/reingold_tilford_test.exs @@ -130,10 +130,6 @@ defmodule Phoenix.LiveDashboard.ReingoldTilfordTest do end end - defp validate_x_separation_between_nodes(%{children: []} = node, ancestor_x_coordinate) do - if ancestor_x_coordinate + @node_x_separation <= node, do: true, else: false - end - defp validate_x_separation_between_nodes( %{children: children} = ancestor, ancestor_x_coordinate