From 9585cfd98beb2156f75d15c22c694cb34a29f6ec Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 29 Sep 2020 19:07:05 +0200 Subject: 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. --- src/args.rs | 10 ---------- 1 file changed, 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 for nitrokey::Model { fn from(model: DeviceModel) -> nitrokey::Model { match model { -- cgit v1.2.3