From 5b62910bae935df3d322e97e256a8903640d962b Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 17 Jan 2026 10:20:19 -0600 Subject: [PATCH] Remove unused module attributes and alias in Ubiquiti profile - Remove unused Discovery alias - Remove unused @radio_tx_capacity and @radio_rx_capacity attributes - Remove unused @radio_uptime_pct, @radio_firmware, @radio_status - Remove unused @radio_remote_mac and @radio_remote_ip attributes - Fixes all compile warnings --- lib/towerops/snmp/profiles/ubiquiti.ex | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/towerops/snmp/profiles/ubiquiti.ex b/lib/towerops/snmp/profiles/ubiquiti.ex index 253806bc..d25dd1de 100644 --- a/lib/towerops/snmp/profiles/ubiquiti.ex +++ b/lib/towerops/snmp/profiles/ubiquiti.ex @@ -11,7 +11,6 @@ defmodule Towerops.Snmp.Profiles.Ubiquiti do """ alias Towerops.Snmp.Client - alias Towerops.Snmp.Discovery alias Towerops.Snmp.Profiles.Base require Logger @@ -24,8 +23,6 @@ defmodule Towerops.Snmp.Profiles.Ubiquiti do @radio_tx_freq "#{@radio_config_base}.5" @radio_rx_freq "#{@radio_config_base}.6" @radio_tx_power "#{@radio_config_base}.9" - @radio_tx_capacity "#{@radio_config_base}.28" - @radio_rx_capacity "#{@radio_config_base}.29" # Radio statistics OIDs (.1.3.2.1) @radio_stats_base "#{@ubnt_base}.1.3.2.1" @@ -37,11 +34,6 @@ defmodule Towerops.Snmp.Profiles.Ubiquiti do @radio_rx_signal "#{@radio_stats_base}.8" @radio_remote_tx_power "#{@radio_stats_base}.11" @radio_remote_rx_power "#{@radio_stats_base}.14" - @radio_uptime_pct "#{@radio_stats_base}.36" - @radio_firmware "#{@radio_stats_base}.40" - @radio_status "#{@radio_stats_base}.42" - @radio_remote_mac "#{@radio_stats_base}.45" - @radio_remote_ip "#{@radio_stats_base}.46" @doc """ Discovers system information using base profile.