Cleanup: move duplicate doc-string to inline comment

This commit is contained in:
Campbell Barton
2024-10-09 15:00:34 +11:00
parent ff8abcabe0
commit 2f35b3baf4
2 changed files with 8 additions and 9 deletions

View File

@@ -459,14 +459,13 @@ bool BLI_is_file(const char *path)
return (mode && !S_ISDIR(mode));
}
/**
* Use for both text and binary file reading.
*/
void *BLI_file_read_data_as_mem_from_handle(FILE *fp,
bool read_size_exact,
size_t pad_bytes,
size_t *r_size)
{
/* NOTE: Used for both text and binary file reading. */
BLI_stat_t st;
if (BLI_fstat(fileno(fp), &st) == -1) {
return nullptr;

View File

@@ -988,14 +988,14 @@ void discard_edit_mode_pointers(ID *id_cow)
} // namespace
/**
* Free content of the evaluated data-block.
* Notes:
* - Does not recurse into nested ID data-blocks.
* - Does not free data-block itself.
*/
void deg_free_eval_copy_datablock(ID *id_cow)
{
/* Free content of the evaluated data-block.
* Notes:
* - Does not recurse into nested ID data-blocks.
* - Does not free data-block itself.
*/
if (!check_datablock_expanded(id_cow)) {
/* Actual content was never copied on top of evaluated data-block, we have
* nothing to free. */