diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-09-28 18:32:54 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-09-28 18:32:58 +0300 |
commit | 34ba6968b2d4b4803652c3c109963a2de4b070ee (patch) | |
tree | 26cf05b9a2e829a76567f91a52428dae4870a6ca /source/blender/blenkernel/BKE_asset_catalog.hh | |
parent | f17ca53cdd2f3e3f4ccfcae404deebb02ead158d (diff) |
Cleanup: asset catalog service, remove obsolete `write_to_disk` function
Remove `AssetCatalogService::write_to_disk()` function. It has been
superseded by `write_to_disk_on_blendfile_save()`; the handful of test
functions that called the old function have been adjusted to use the
new one.
No functional changes to Blender itself.
Diffstat (limited to 'source/blender/blenkernel/BKE_asset_catalog.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_asset_catalog.hh | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source/blender/blenkernel/BKE_asset_catalog.hh b/source/blender/blenkernel/BKE_asset_catalog.hh index 9b8b99f8f6d..cae476708cd 100644 --- a/source/blender/blenkernel/BKE_asset_catalog.hh +++ b/source/blender/blenkernel/BKE_asset_catalog.hh @@ -65,15 +65,6 @@ class AssetCatalogService { void load_from_disk(const CatalogFilePath &file_or_directory_path); /** - * Write the catalog definitions to disk. - * The provided directory path is only used when there is no CDF loaded from disk yet but assets - * still have to be saved. - * - * Return true on success, which either means there were no in-memory categories to save, or the - * save was successful. */ - bool write_to_disk(const CatalogFilePath &directory_for_new_files); - - /** * Write the catalog definitions to disk in response to the blend file being saved. * * The location where the catalogs are saved is variable, and depends on the location of the @@ -90,7 +81,7 @@ class AssetCatalogService { * * Return true on success, which either means there were no in-memory categories to save, * or the save was successful. */ - bool write_to_disk_on_blendfile_save(const char *blend_file_path); + bool write_to_disk_on_blendfile_save(const CatalogFilePath &blend_file_path); /** * Merge on-disk changes into the in-memory asset catalogs. |