about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 16:39:26 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-24 16:39:26 +0200
commita8c50ca481a153a51467acf7cc4e418c952e909b (patch)
treea771ecb94675e2c023d9336e78b5513ebe86686c
parentrefactor(watch): Don't track the playlist, use the properties of `mpv` instead (diff)
downloadyt-a8c50ca481a153a51467acf7cc4e418c952e909b.tar.gz
yt-a8c50ca481a153a51467acf7cc4e418c952e909b.zip
refactor(comments): Remove dead code
-rw-r--r--src/comments/mod.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/comments/mod.rs b/src/comments/mod.rs
index eba391e..aa4cc06 100644
--- a/src/comments/mod.rs
+++ b/src/comments/mod.rs
@@ -9,11 +9,8 @@
 // If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
 
 use std::{
-    env,
-    fs::{self},
     io::Write,
     mem,
-    path::PathBuf,
     process::{Command, Stdio},
 };
 
@@ -33,22 +30,6 @@ use crate::{
 mod comment;
 mod display;
 
-fn get_runtime_path(component: &'static str) -> anyhow::Result<PathBuf> {
-    let out: PathBuf = format!(
-        "{}/{}",
-        env::var("XDG_RUNTIME_DIR").expect("This should always exist"),
-        component
-    )
-    .into();
-    fs::create_dir_all(out.parent().expect("Parent should exist"))?;
-    Ok(out)
-}
-
-const STATUS_PATH: &str = "ytcc/running";
-pub fn status_path() -> anyhow::Result<PathBuf> {
-    get_runtime_path(STATUS_PATH)
-}
-
 pub async fn get_comments(app: &App) -> Result<Comments> {
     let currently_playing_video: Video =
         if let Some(video) = get_currently_playing_video(&app).await? {