Remove dead code that was flagged by Rust compiler. Error handling is now unified through the AppError enum.