Skip to content

Commit

Permalink
Remove unused presets (maybe revisit in future).
Browse files Browse the repository at this point in the history
  • Loading branch information
samscott89 committed Feb 17, 2018
1 parent 3353cff commit 42a529d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ lazy_static! {
};
}

/// Configuration presets
pub enum Presets {
/// The defaults used, useful to make small tweaks to the default set
Default,
/// Suitable values for interactive logins (~0.5s hashing times)
Interactive,
/// Stronger values for non-interactive actions, e.g. disk encryption (~3s hashing times)
NonInteractive,
/// Combines both `Argon2i` and `scrypt` for side-channel resistance.
Paranoid,
}

/// Holds possible configuration options
/// See the [module level documentation](index.html) for more information.
#[derive(Debug, Deserialize, Serialize)]
Expand Down Expand Up @@ -118,17 +106,6 @@ impl Config {
}
}

/// Generates a `Config` from a selected preset
/// configuration.
pub fn from_preset(preset: &Presets) -> Self {
match *preset {
Presets::Default => Self::default(),
Presets::Interactive => unimplemented!(),
Presets::NonInteractive => unimplemented!(),
Presets::Paranoid => unimplemented!(),
}
}

/// Generates a `Config` from a .toml file.
/// Config files can be generated using the `Config::to_string` method on
/// an existing config.
Expand Down

0 comments on commit 42a529d

Please sign in to comment.