From 4a43d9decc348e9160e9969aa162d2c88027199c Mon Sep 17 00:00:00 2001 From: Graham McIntie Date: Tue, 24 Mar 2026 08:34:06 -0500 Subject: [PATCH] chore: remove dead commented-out code from topology.ex (#137) Removes the commented-out `apply_inferred_role` function that was left behind when device type was simplified to manual-only. Split from #135. Reviewed-on: https://git.mcintire.me/graham/towerops-web/pulls/137 --- lib/towerops/topology.ex | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/towerops/topology.ex b/lib/towerops/topology.ex index afdf1451..eb950100 100644 --- a/lib/towerops/topology.ex +++ b/lib/towerops/topology.ex @@ -936,15 +936,6 @@ defmodule Towerops.Topology do end end - # Deprecated: Auto-inference is disabled - # defp apply_inferred_role(device, role) when role == device.device_role, do: {:ok, device} - # - # defp apply_inferred_role(device, role) do - # device - # |> Ecto.Changeset.change(%{device_role: role}) - # |> Repo.update() - # end - defp vendor_match?(value, vendors), do: Enum.any?(vendors, &String.contains?(value, &1)) defp platform_match?(description, platforms), do: Enum.any?(platforms, &String.contains?(description, &1))