remove unused AccountConfig::name

the field was never set or read.

to get the name for an account,
use `dc_get_config(account, "displayname")`.
This commit is contained in:
B. Petersen
2020-11-09 22:22:19 +01:00
committed by link2xt
parent 1f4403d149
commit bd856d90db

View File

@@ -347,7 +347,6 @@ impl Config {
inner.accounts.push(AccountConfig { inner.accounts.push(AccountConfig {
id, id,
name: String::new(),
dir: target_dir.into(), dir: target_dir.into(),
uuid, uuid,
}); });
@@ -414,8 +413,6 @@ impl Config {
pub struct AccountConfig { pub struct AccountConfig {
/// Unique id. /// Unique id.
pub id: u32, pub id: u32,
/// Display name
pub name: String,
/// Root directory for all data for this account. /// Root directory for all data for this account.
pub dir: std::path::PathBuf, pub dir: std::path::PathBuf,
pub uuid: Uuid, pub uuid: Uuid,