From 77c273ee378726e470469a72430d50a0de6f9896 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Thu, 16 Feb 2023 18:56:03 +0100 Subject: [PATCH] Fix unused variable in release builds Assert is not needed in this case. --- source/blender/editors/space_file/file_draw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index 77caf8c09ec..bfc1903ae7d 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -148,9 +148,6 @@ static void file_but_enable_drag(uiBut *but, (file->typeflag & FILE_TYPE_ASSET) != 0) { char blend_path[FILE_MAX_LIBEXTRA]; if (BLO_library_path_explode(path, blend_path, NULL, NULL)) { - const FileAssetSelectParams *asset_params = ED_fileselect_get_asset_params(sfile); - BLI_assert(asset_params != NULL); - const int import_method = ED_fileselect_asset_import_method_get(sfile, file); BLI_assert(import_method > -1);