Skip to content

Commit 05a1967

Browse files
committed
remove StockMessage::PartialDownloadMsgBody
1 parent 6d11e08 commit 05a1967

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

deltachat-ffi/deltachat.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7241,13 +7241,7 @@ void dc_event_unref(dc_event_t* event);
72417241
/// `%1$s` will be replaced by the percentage used
72427242
#define DC_STR_QUOTA_EXCEEDING_MSG_BODY 98
72437243

7244-
/// "%1$s message"
7245-
///
7246-
/// Used as the message body when a message
7247-
/// was not yet downloaded completely
7248-
/// (dc_msg_get_download_state() is e.g. @ref DC_DOWNLOAD_AVAILABLE).
7249-
///
7250-
/// `%1$s` will be replaced by human-readable size (e.g. "1.2 MiB").
7244+
/// @deprecated Deprecated 2025-11-12, this string is no longer needed.
72517245
#define DC_STR_PARTIAL_DOWNLOAD_MSG_BODY 99
72527246

72537247
/// "Multi Device Synchronization"

src/stock_str.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,15 +1182,6 @@ pub(crate) async fn quota_exceeding(context: &Context, highest_usage: u64) -> St
11821182
.replace("%%", "%")
11831183
}
11841184

1185-
/// Stock string: `%1$s message` with placeholder replaced by human-readable size.
1186-
#[allow(dead_code)]
1187-
pub(crate) async fn partial_download_msg_body(context: &Context, org_bytes: u32) -> String {
1188-
let size = &format_size(org_bytes, BINARY);
1189-
translated(context, StockMessage::PartialDownloadMsgBody)
1190-
.await
1191-
.replace1(size)
1192-
}
1193-
11941185
/// Stock string: `Incoming Messages`.
11951186
pub(crate) async fn incoming_messages(context: &Context) -> String {
11961187
translated(context, StockMessage::IncomingMessages).await

src/stock_str/stock_str_tests.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,6 @@ async fn test_quota_exceeding_stock_str() -> Result<()> {
126126
Ok(())
127127
}
128128

129-
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
130-
async fn test_partial_download_msg_body() -> Result<()> {
131-
let t = TestContext::new().await;
132-
let str = partial_download_msg_body(&t, 1024 * 1024).await;
133-
assert_eq!(str, "1 MiB message");
134-
Ok(())
135-
}
136-
137129
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
138130
async fn test_update_device_chats() {
139131
let t = TestContext::new_alice().await;

0 commit comments

Comments
 (0)