From bd856d90db2ced8bb3b6545427c4698b58ecd661 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 9 Nov 2020 22:22:19 +0100 Subject: [PATCH] remove unused AccountConfig::name the field was never set or read. to get the name for an account, use `dc_get_config(account, "displayname")`. --- src/accounts.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/accounts.rs b/src/accounts.rs index 5426525b6..8c19936b9 100644 --- a/src/accounts.rs +++ b/src/accounts.rs @@ -347,7 +347,6 @@ impl Config { inner.accounts.push(AccountConfig { id, - name: String::new(), dir: target_dir.into(), uuid, }); @@ -414,8 +413,6 @@ impl Config { pub struct AccountConfig { /// Unique id. pub id: u32, - /// Display name - pub name: String, /// Root directory for all data for this account. pub dir: std::path::PathBuf, pub uuid: Uuid,