Cleanup: Remove unnecessary asset temporary ID consumer override
The override from 733e4d827a makes this one unnecessary.
This commit is contained in:
@@ -31,7 +31,6 @@ struct AssetHandle;
|
|||||||
struct Main;
|
struct Main;
|
||||||
struct ReportList;
|
struct ReportList;
|
||||||
|
|
||||||
AssetTempIDConsumer *ED_asset_temp_id_consumer_create(const struct AssetHandle *handle);
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C++" AssetTempIDConsumer *ED_asset_temp_id_consumer_create(
|
extern "C++" AssetTempIDConsumer *ED_asset_temp_id_consumer_create(
|
||||||
const blender::asset_system::AssetRepresentation *asset);
|
const blender::asset_system::AssetRepresentation *asset);
|
||||||
|
|||||||
@@ -14,10 +14,6 @@
|
|||||||
|
|
||||||
#include "AS_asset_representation.hh"
|
#include "AS_asset_representation.hh"
|
||||||
|
|
||||||
#include "DNA_space_types.h"
|
|
||||||
|
|
||||||
#include "ED_asset.hh"
|
|
||||||
|
|
||||||
#include "BKE_report.h"
|
#include "BKE_report.h"
|
||||||
|
|
||||||
#include "BLI_utility_mixins.hh"
|
#include "BLI_utility_mixins.hh"
|
||||||
@@ -69,16 +65,6 @@ class AssetTemporaryIDConsumer : NonCopyable, NonMovable {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
AssetTempIDConsumer *ED_asset_temp_id_consumer_create(const AssetHandle *handle)
|
|
||||||
{
|
|
||||||
if (!handle) {
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
BLI_assert(handle->file_data->asset != nullptr);
|
|
||||||
return reinterpret_cast<AssetTempIDConsumer *>(
|
|
||||||
MEM_new<AssetTemporaryIDConsumer>(__func__, ED_asset_handle_get_representation(handle)));
|
|
||||||
}
|
|
||||||
|
|
||||||
AssetTempIDConsumer *ED_asset_temp_id_consumer_create(
|
AssetTempIDConsumer *ED_asset_temp_id_consumer_create(
|
||||||
const asset_system::AssetRepresentation *asset)
|
const asset_system::AssetRepresentation *asset)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user