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:
parent
e347b36db0
commit
4a43d9decc
1 changed files with 0 additions and 9 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue