aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-29 19:07:05 +0200
committerDaniel Mueller <deso@posteo.net>2021-01-10 21:06:18 -0800
commit9585cfd98beb2156f75d15c22c694cb34a29f6ec (patch)
tree6bbec1dcef253c8ff16d6616c5543b6bc1953025
parent3d83b07ca7090817192bcd8f250effc0d0817b2a (diff)
downloadnitrocli-9585cfd98beb2156f75d15c22c694cb34a29f6ec.tar.gz
nitrocli-9585cfd98beb2156f75d15c22c694cb34a29f6ec.tar.bz2
Remove DeviceModel::as_user_facing_str
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.
-rw-r--r--src/args.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/args.rs b/src/args.rs
index 3bb1225..a38ca6a 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -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 {