| 259 | } |
| 260 | |
| 261 | static void destroy_log_book(struct log_book *log) |
| 262 | { |
| 263 | size_t num = log->num_entries; |
| 264 | |
| 265 | for (size_t i = 0; i < num; i++) |
| 266 | delete_entry(log, &log->log[i]); |
| 267 | |
| 268 | assert(log->num_entries == 0); |
| 269 | assert(log->mem_used == 0); |
| 270 | } |
| 271 | |
| 272 | struct log_book *new_log_book(struct lightningd *ld, size_t max_mem) |
| 273 | { |
nothing calls this directly
no test coverage detected