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: graham/towerops-web#137
This commit is contained in:
Graham McIntire 2026-03-24 08:34:06 -05:00 committed by graham
parent e347b36db0
commit 4a43d9decc

View file

@ -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))