remove unused code

This commit is contained in:
Luna 2023-06-11 23:01:37 -03:00
parent 61250ffaa2
commit 87e63cb770

View file

@ -13,7 +13,6 @@ use std::collections::{HashMap, HashSet};
use std::io::Read;
use std::io::Write;
use std::process::Stdio;
use std::rc::Rc;
#[derive(Debug)]
enum Runner {
@ -86,15 +85,6 @@ where
}
}
fn try_thing() -> Result<(), anyhow::Error> {
anyhow::bail!("it failed!")
}
async fn test_handler() -> Result<(), AppError> {
try_thing()?;
Ok(())
}
#[derive(Serialize, Deserialize)]
struct WD14Response {
caption: HashMap<String, f32>,
@ -173,7 +163,6 @@ async fn fetch_frame_as_image(
frame_index: usize,
frame_rate: f64, // X/1sec
) -> anyhow::Result<()> {
let frame_index_param = format!("select=eq(n\\,{})", frame_index);
let timeline_index: f64 = frame_index as f64 / frame_rate;
let timeline_index_param = format!("{:.5}", timeline_index);
let builder = ffmpeg_cli::FfmpegBuilder::new()