Skip to content

Commit fbbffb2

Browse files
jpnurmiclaude
andcommitted
refactor(database): remove unused sentry__run_write_cache
The retry system writes cache files directly via its own paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9898443 commit fbbffb2

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/sentry_database.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,6 @@ sentry__run_write_external(
163163
return write_envelope(run->external_path, envelope);
164164
}
165165

166-
bool
167-
sentry__run_write_cache(
168-
const sentry_run_t *run, const sentry_envelope_t *envelope)
169-
{
170-
if (sentry__path_create_dir_all(run->cache_path) != 0) {
171-
SENTRY_ERRORF("mkdir failed: \"%s\"", run->cache_path->path);
172-
return false;
173-
}
174-
return write_envelope(run->cache_path, envelope);
175-
}
176-
177166
bool
178167
sentry__run_move_cache(
179168
const sentry_run_t *run, const sentry_path_t *src, const char *dst)

src/sentry_database.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ bool sentry__run_write_session(
6464
*/
6565
bool sentry__run_clear_session(const sentry_run_t *run);
6666

67-
/**
68-
* This will serialize and write the given envelope to disk into a file named
69-
* like so:
70-
* `<database>/cache/<event-uuid>.envelope`
71-
*/
72-
bool sentry__run_write_cache(
73-
const sentry_run_t *run, const sentry_envelope_t *envelope);
74-
7567
/**
7668
* Moves `src` to `<database>/cache/<dst>`. If `dst` is NULL, the filename of
7769
* `src` is used.

0 commit comments

Comments
 (0)