[chore](trx-rs): remove unused example_toml() methods

Superseded by example_combined_toml() which now covers all use cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-02-28 08:13:00 +01:00
parent 06312abe42
commit d8f030667f
2 changed files with 0 additions and 78 deletions
-35
View File
@@ -657,41 +657,6 @@ impl ServerConfig {
}]
}
/// Generate an example configuration as a TOML string.
pub fn example_toml() -> String {
let example = ServerConfig {
general: GeneralConfig {
callsign: Some("N0CALL".to_string()),
log_level: Some("info".to_string()),
latitude: Some(52.2297),
longitude: Some(21.0122),
},
rig: RigConfig {
model: Some("ft817".to_string()),
initial_freq_hz: 144_300_000,
initial_mode: RigMode::USB,
access: AccessConfig {
access_type: Some("serial".to_string()),
port: Some("/dev/ttyUSB0".to_string()),
baud: Some(9600),
host: None,
tcp_port: None,
args: None,
},
},
behavior: BehaviorConfig::default(),
listen: ListenConfig::default(),
audio: AudioConfig::default(),
pskreporter: PskReporterConfig::default(),
aprsfi: AprsFiConfig::default(),
decode_logs: DecodeLogsConfig::default(),
sdr: SdrConfig::default(),
rigs: Vec::new(),
};
toml::to_string_pretty(&example).unwrap_or_default()
}
/// Generate an example configuration wrapped under the `[trx-server]`
/// section header, suitable for use in a combined `trx-rs.toml` file.
pub fn example_combined_toml() -> String {