Cleanup: Remove unused headers in asset files
Also move system includes first, like we have it elsewhere in Blender.
This commit is contained in:
parent
0eb63328e8
commit
7150f919d3
Notes:
blender-bot
2023-02-14 09:17:57 +01:00
Referenced by commit 9de4f64197
, Fix compile error on Windows
|
@ -21,14 +21,12 @@
|
|||
#include <cstring>
|
||||
|
||||
#include "DNA_ID.h"
|
||||
#include "DNA_asset_types.h"
|
||||
#include "DNA_defaults.h"
|
||||
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_string.h"
|
||||
#include "BLI_string_ref.hh"
|
||||
#include "BLI_string_utils.h"
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_uuid.h"
|
||||
|
||||
#include "BKE_asset.h"
|
||||
|
|
|
@ -18,25 +18,20 @@
|
|||
* \ingroup bke
|
||||
*/
|
||||
|
||||
#include <fstream>
|
||||
#include <set>
|
||||
|
||||
#include "BKE_asset_catalog.hh"
|
||||
#include "BKE_asset_library.h"
|
||||
#include "BKE_preferences.h"
|
||||
|
||||
#include "BLI_fileops.h"
|
||||
#include "BLI_path_util.h"
|
||||
#include "BLI_set.hh"
|
||||
#include "BLI_string_ref.hh"
|
||||
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
/* For S_ISREG() and S_ISDIR() on Windows. */
|
||||
#ifdef WIN32
|
||||
# include "BLI_winstuff.h"
|
||||
#endif
|
||||
|
||||
#include <fstream>
|
||||
#include <set>
|
||||
|
||||
namespace blender::bke {
|
||||
|
||||
const CatalogFilePath AssetCatalogService::DEFAULT_CATALOG_FILENAME = "blender_assets.cats.txt";
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* \ingroup bke
|
||||
*/
|
||||
|
||||
#include "BKE_asset_catalog.hh"
|
||||
#include <memory>
|
||||
|
||||
#include "BKE_asset_library.hh"
|
||||
#include "BKE_callbacks.h"
|
||||
#include "BKE_main.h"
|
||||
#include "BKE_preferences.h"
|
||||
|
||||
|
@ -29,12 +29,8 @@
|
|||
#include "DNA_asset_types.h"
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "asset_library_service.hh"
|
||||
|
||||
#include <memory>
|
||||
|
||||
bool blender::bke::AssetLibrary::save_catalogs_when_file_is_saved = true;
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,16 +20,11 @@
|
|||
|
||||
#include "asset_library_service.hh"
|
||||
|
||||
#include "BKE_asset_library.hh"
|
||||
#include "BKE_blender.h"
|
||||
#include "BKE_callbacks.h"
|
||||
|
||||
#include "BLI_fileops.h"
|
||||
#include "BLI_path_util.h"
|
||||
#include "BLI_string_ref.hh"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "CLG_log.h"
|
||||
|
||||
static CLG_LogRef LOG = {"bke.asset_service"};
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
*/
|
||||
|
||||
#include "BKE_asset_catalog.hh"
|
||||
#include "BKE_asset_catalog_path.hh"
|
||||
#include "BKE_asset_library.hh"
|
||||
#include "BKE_main.h"
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
|
||||
#include "BLI_listbase.h"
|
||||
|
||||
#include "DNA_ID.h"
|
||||
#include "DNA_asset_types.h"
|
||||
|
||||
#include "ED_asset_filter.h"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "DNA_asset_types.h"
|
||||
#include "DNA_space_types.h"
|
||||
|
||||
#include "BLO_readfile.h"
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
#include "BKE_preferences.h"
|
||||
|
||||
#include "DNA_asset_types.h"
|
||||
#include "DNA_userdef_types.h"
|
||||
|
||||
#include "UI_resources.h"
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#include "BLI_path_util.h"
|
||||
#include "BLI_utility_mixins.hh"
|
||||
|
||||
#include "DNA_asset_types.h"
|
||||
#include "DNA_space_types.h"
|
||||
|
||||
#include "BKE_preferences.h"
|
||||
|
@ -40,7 +39,6 @@
|
|||
#include "ED_fileselect.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
||||
/* XXX uses private header of file-space. */
|
||||
#include "../space_file/filelist.h"
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
* Functions for marking and clearing assets.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "DNA_ID.h"
|
||||
|
||||
#include "BKE_asset.h"
|
||||
|
@ -32,8 +29,6 @@
|
|||
#include "BKE_lib_id.h"
|
||||
#include "BKE_main.h"
|
||||
|
||||
#include "BLO_readfile.h"
|
||||
|
||||
#include "UI_interface_icons.h"
|
||||
|
||||
#include "RNA_access.h"
|
||||
|
|
|
@ -18,19 +18,13 @@
|
|||
* \ingroup edasset
|
||||
*/
|
||||
|
||||
#include "BKE_asset.h"
|
||||
#include "BKE_asset_catalog.hh"
|
||||
#include "BKE_asset_library.hh"
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_lib_id.h"
|
||||
#include "BKE_main.h"
|
||||
#include "BKE_report.h"
|
||||
|
||||
#include "BLI_string_ref.hh"
|
||||
#include "BLI_vector.hh"
|
||||
|
||||
#include "ED_asset.h"
|
||||
#include "ED_asset_catalog.hh"
|
||||
/* XXX needs access to the file list, should all be done via the asset system in future. */
|
||||
#include "ED_fileselect.h"
|
||||
|
||||
|
@ -38,7 +32,6 @@
|
|||
#include "RNA_define.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
||||
using namespace blender;
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <new>
|
||||
|
||||
#include "DNA_asset_types.h"
|
||||
#include "DNA_space_types.h"
|
||||
|
||||
#include "BKE_report.h"
|
||||
|
|
Loading…
Reference in New Issue