Skip to content

Commit

Permalink
Remove DeviceModel::as_user_facing_str
Browse files Browse the repository at this point in the history
This patch removes the unused DeviceModel::as_user_facing_str method.
The device model is only used for the argument handling.  When printing
messages for the user, we always use nitrokey::Model.  Its Display
implementation already prints the model in an appropriate format.
  • Loading branch information
robinkrahl authored and d-e-s-o committed Jan 11, 2021
1 parent 3d83b07 commit 9585cfd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,6 @@ Enum! {
]
}

impl DeviceModel {
pub fn as_user_facing_str(&self) -> &str {
match self {
DeviceModel::Librem => "Librem",
DeviceModel::Pro => "Pro",
DeviceModel::Storage => "Storage",
}
}
}

impl From<DeviceModel> for nitrokey::Model {
fn from(model: DeviceModel) -> nitrokey::Model {
match model {
Expand Down

0 comments on commit 9585cfd

Please sign in to comment.