mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-03 19:19:28 +08:00
Dont expose method used only for testing to wider code
This commit is contained in:
@@ -732,7 +732,7 @@ end:
|
||||
return data;
|
||||
}
|
||||
|
||||
size_t
|
||||
static size_t
|
||||
disk_cache_clear_from_ram(PyObject *self_, bool(matches)(void*, void *key, unsigned keysz), void *data) {
|
||||
DiskCache *self = (DiskCache*)self_;
|
||||
size_t ans = 0;
|
||||
|
||||
@@ -16,7 +16,6 @@ PyObject* read_from_disk_cache_python(PyObject *self_, const void *key, size_t k
|
||||
bool disk_cache_wait_for_write(PyObject *self, monotonic_t timeout);
|
||||
size_t disk_cache_total_size(PyObject *self);
|
||||
size_t disk_cache_size_on_disk(PyObject *self);
|
||||
size_t disk_cache_clear_from_ram(PyObject *self_, bool(matches)(void* data, void *key, unsigned keysz), void*);
|
||||
size_t disk_cache_num_cached_in_ram(PyObject *self_);
|
||||
|
||||
static inline void* disk_cache_malloc_allocator(void *x, size_t sz) {
|
||||
|
||||
Reference in New Issue
Block a user