remove unused dc_chat_get_subtitle() api

This commit is contained in:
B. Petersen
2020-04-16 22:06:47 +02:00
parent cc6ce72f6e
commit 0b6b8ced92
10 changed files with 13 additions and 95 deletions

View File

@@ -35,12 +35,6 @@ pub enum StockMessage {
#[strum(props(fallback = "Draft"))]
Draft = 3,
#[strum(props(fallback = "%1$s member(s)"))]
Member = 4,
#[strum(props(fallback = "%1$s contact(s)"))]
Contact = 6,
#[strum(props(fallback = "Voice message"))]
VoiceMessage = 7,
@@ -136,9 +130,6 @@ pub enum StockMessage {
))]
AcSetupMsgBody = 43,
#[strum(props(fallback = "Messages I sent to myself"))]
SelfTalkSubTitle = 50,
#[strum(props(fallback = "Cannot login as %1$s."))]
CannotLogin = 60,
@@ -430,8 +421,9 @@ mod tests {
let t = dummy_context();
// uses %1$s substitution
assert_eq!(
t.ctx.stock_string_repl_str(StockMessage::Member, "42"),
"42 member(s)"
t.ctx
.stock_string_repl_str(StockMessage::MsgAddMember, "Foo"),
"Member Foo added."
);
// We have no string using %1$d to test...
}
@@ -440,8 +432,8 @@ mod tests {
fn test_stock_string_repl_int() {
let t = dummy_context();
assert_eq!(
t.ctx.stock_string_repl_int(StockMessage::Member, 42),
"42 member(s)"
t.ctx.stock_string_repl_int(StockMessage::MsgAddMember, 42),
"Member 42 added."
);
}