From 458d87d2a7fb31beea3e965bd77d7d0ce25eb4b4 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(-) (limited to 'src') 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