Cleanup: move duplicate doc-string to inline comment
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user