aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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? {