Skip to content

Commit

Permalink
Completely remove PathUpdateMethod type
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jul 3, 2020
1 parent 6c45219 commit 42b442a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion src/cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use crate::utils::Notification;
use crate::{Cfg, UpdateStatus};
use crate::{DUP_TOOLS, TOOLS};

mod path_update;
#[cfg(unix)]
mod shell;
#[cfg(unix)]
mod unix;
Expand Down
8 changes: 0 additions & 8 deletions src/cli/self_update/path_update.rs

This file was deleted.

13 changes: 0 additions & 13 deletions src/cli/self_update/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::path::Path;
use std::process::Command;

use super::super::errors::*;
use super::path_update::PathUpdateMethod;
use super::{install_bins, InstallOpts};
use crate::dist::dist::TargetTriple;
use crate::process;
Expand Down Expand Up @@ -431,18 +430,6 @@ pub fn delete_rustup_and_cargo_home() -> Result<()> {
Ok(())
}

/// Decide which rcfiles we're going to update, so we
/// can tell the user before they confirm.
pub fn get_add_path_methods() -> Vec<PathUpdateMethod> {
vec![PathUpdateMethod::Windows]
}

/// Decide which rcfiles we're going to update, so we
/// can tell the user before they confirm.
pub fn get_remove_path_methods() -> Result<Vec<PathUpdateMethod>> {
Ok(vec![PathUpdateMethod::Windows])
}

#[cfg(test)]
mod tests {
#[test]
Expand Down

0 comments on commit 42b442a

Please sign in to comment.