Skip to content

Commit

Permalink
prune dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hzqkii committed Jan 13, 2025
1 parent 2f53a99 commit 8203fa7
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use crate::portable;
use clap::Parser;
use std::fs::File;
use homedir;
use std::fs;
use std::fs::File;
use std::io::{Read, Write};
use std::{env, path::PathBuf, process::Command};
use crate::portable;
use homedir;

/// Smoothen up your gameplay footage with Smoothie, yum!
#[derive(Parser, Debug, Clone)]
Expand Down Expand Up @@ -194,7 +194,6 @@ If you'd like help, take a screenshot of this message and your recipe and come o
let current_exe_path_dir = current_exe_path
.parent()
.expect("Could not get directory of directory's executable??");


let mut last_args = portable::get_last_args_path();

Expand All @@ -216,8 +215,8 @@ If you'd like help, take a screenshot of this message and your recipe and come o

let ini_path = presets_path.canonicalize().unwrap().display().to_string();

match opener::open(&ini_path){
Ok(()) =>{
match opener::open(&ini_path) {
Ok(()) => {
std::process::exit(0);
}
Err(e) => {
Expand All @@ -237,9 +236,8 @@ If you'd like help, take a screenshot of this message and your recipe and come o

let ini_path = presets_path.canonicalize().unwrap().display().to_string();


match opener::open(&ini_path){
Ok(()) =>{
match opener::open(&ini_path) {
Ok(()) => {
std::process::exit(0);
}
Err(e) => {
Expand All @@ -255,14 +253,14 @@ If you'd like help, take a screenshot of this message and your recipe and come o

let ini_path = ini_path.canonicalize().unwrap().display().to_string();

match opener::open(&ini_path){
Ok(()) =>{
match opener::open(&ini_path) {
Ok(()) => {
std::process::exit(0);
}
Err(e) => {
panic!("Error {e}\n\nFailed opening file {:?}", ini_path);
}
}
}
}
"root" | "dir" | "folder" => {
if cfg!(target_os = "windows") {
Expand Down

0 comments on commit 8203fa7

Please sign in to comment.