Skip to content

Commit 01920ab

Browse files
committed
remove unused code in server mode
1 parent 5c68638 commit 01920ab

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/main.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -159,22 +159,3 @@ struct AnalysisResult {
159159
timestamp: chrono::DateTime<chrono::Utc>,
160160
}
161161

162-
/// Process audio data through the signal processing pipeline
163-
fn process_audio(
164-
source: Box<dyn acquisition::AudioSource>,
165-
filter: Box<dyn preprocessing::Filter>,
166-
analyzer: Box<dyn spectral::SpectralAnalyzer>,
167-
) -> Result<AnalysisResult> {
168-
// Simulate processing
169-
// In a real implementation, this would read data from source, apply filter, and perform spectral analysis
170-
let frequency = 2000.0;
171-
let amplitude = 0.05;
172-
let concentration = amplitude * 1000.0; // Simulated conversion factor
173-
174-
Ok(AnalysisResult {
175-
frequency,
176-
amplitude,
177-
concentration,
178-
timestamp: chrono::Utc::now(),
179-
})
180-
}

0 commit comments

Comments
 (0)