diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-12-08 16:55:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-12-08 17:14:10 +0300 |
commit | 61776befc3f88c373e47ccbdf8c75e2ca0f4e987 (patch) | |
tree | 0214b7c5146300d41b7bcbe99f87c92599608e7f /source/blender/editors/space_file | |
parent | 8f1997975dc60bc1c18992458603ecd58dfded6d (diff) |
Cleanup: move public doc-strings into headers for 'editors'
Ref T92709
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/asset_catalog_tree_view.cc | 4 | ||||
-rw-r--r-- | source/blender/editors/space_file/file_draw.c | 4 | ||||
-rw-r--r-- | source/blender/editors/space_file/file_intern.h | 57 | ||||
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 8 | ||||
-rw-r--r-- | source/blender/editors/space_file/file_utils.c | 3 | ||||
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 44 | ||||
-rw-r--r-- | source/blender/editors/space_file/filelist.h | 46 | ||||
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 43 | ||||
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 1 |
9 files changed, 99 insertions, 111 deletions
diff --git a/source/blender/editors/space_file/asset_catalog_tree_view.cc b/source/blender/editors/space_file/asset_catalog_tree_view.cc index 47e650a7e56..2576d0052a8 100644 --- a/source/blender/editors/space_file/asset_catalog_tree_view.cc +++ b/source/blender/editors/space_file/asset_catalog_tree_view.cc @@ -691,10 +691,6 @@ void file_delete_asset_catalog_filter_settings( OBJECT_GUARDED_SAFE_DELETE(*filter_settings, AssetCatalogFilterSettings); } -/** - * \return True if the file list should update its filtered results (e.g. because filtering - * parameters changed). - */ bool file_set_asset_catalog_filter_settings( FileAssetCatalogFilterSettingsHandle *filter_settings_handle, eFileSel_Params_AssetCatalogVisibility catalog_visibility, diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index c2c9cbf797a..44e9735866d 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -1132,10 +1132,6 @@ static void file_draw_invalid_library_hint(const bContext *C, } } -/** - * Draw a string hint if the file list is invalid. - * \return true if the list is invalid and a hint was drawn. - */ bool file_draw_hint_if_invalid(const bContext *C, const SpaceFile *sfile, ARegion *region) { FileAssetSelectParams *asset_params = ED_fileselect_get_asset_params(sfile); diff --git a/source/blender/editors/space_file/file_intern.h b/source/blender/editors/space_file/file_intern.h index f6b5f0f47cd..3fe48157a09 100644 --- a/source/blender/editors/space_file/file_intern.h +++ b/source/blender/editors/space_file/file_intern.h @@ -41,20 +41,30 @@ struct uiLayout; struct View2D; /* file_draw.c */ + #define ATTRIBUTE_COLUMN_PADDING (0.5f * UI_UNIT_X) -#define SMALL_SIZE_CHECK(_size) ((_size) < 64) /* Related to FileSelectParams.thumbnail_size. */ +/** Related to #FileSelectParams.thumbnail_size. */ +#define SMALL_SIZE_CHECK(_size) ((_size) < 64) void file_calc_previews(const bContext *C, ARegion *region); void file_draw_list(const bContext *C, ARegion *region); +/** + * Draw a string hint if the file list is invalid. + * \return true if the list is invalid and a hint was drawn. + */ bool file_draw_hint_if_invalid(const bContext *C, const SpaceFile *sfile, ARegion *region); void file_draw_check_ex(bContext *C, struct ScrArea *area); void file_draw_check(bContext *C); +/** + * For use with; #UI_block_func_set. + */ void file_draw_check_cb(bContext *C, void *arg1, void *arg2); bool file_draw_check_exists(SpaceFile *sfile); /* file_ops.h */ + struct wmOperator; struct wmOperatorType; @@ -72,6 +82,10 @@ void FILE_OT_bookmark_move(struct wmOperatorType *ot); void FILE_OT_reset_recent(wmOperatorType *ot); void FILE_OT_hidedot(struct wmOperatorType *ot); void FILE_OT_execute(struct wmOperatorType *ot); +/** + * Variation of #FILE_OT_execute that accounts for some mouse specific handling. + * Otherwise calls the same logic. + */ void FILE_OT_mouse_execute(struct wmOperatorType *ot); void FILE_OT_cancel(struct wmOperatorType *ot); void FILE_OT_parent(struct wmOperatorType *ot); @@ -92,6 +106,9 @@ void file_filename_enter_handle(bContext *C, void *arg_unused, void *arg_but); int file_highlight_set(struct SpaceFile *sfile, struct ARegion *region, int mx, int my); +/** + * Use to set the file selector path from some arbitrary source. + */ void file_sfile_filepath_set(struct SpaceFile *sfile, const char *filepath); void file_sfile_to_operator_ex(struct Main *bmain, struct wmOperator *op, @@ -102,17 +119,28 @@ void file_sfile_to_operator(struct Main *bmain, struct wmOperator *op, struct Sp void file_operator_to_sfile(struct Main *bmain, struct SpaceFile *sfile, struct wmOperator *op); /* space_file.c */ + extern const char *file_context_dir[]; /* doc access */ /* filesel.c */ + void fileselect_refresh_params(struct SpaceFile *sfile); +/** + * Sets #FileSelectParams.file (name of selected file) + */ void fileselect_file_set(SpaceFile *sfile, const int index); bool file_attribute_column_type_enabled(const FileSelectParams *params, FileAttributeColumnType column); +/** + * Check if the region coordinate defined by \a x and \a y are inside the column header. + */ bool file_attribute_column_header_is_inside(const struct View2D *v2d, const FileLayout *layout, int x, int y); +/** + * Find the column type at region coordinate given by \a x (y doesn't matter for this). + */ FileAttributeColumnType file_attribute_column_type_find_isect(const View2D *v2d, const FileSelectParams *params, FileLayout *layout, @@ -129,13 +157,26 @@ void file_params_smoothscroll_timer_clear(struct wmWindowManager *wm, struct wmWindow *win, SpaceFile *sfile); void file_params_renamefile_clear(struct FileSelectParams *params); +/** + * Set the renaming-state to #FILE_PARAMS_RENAME_POSTSCROLL_PENDING and trigger the smooth-scroll + * timer. To be used right after a file was renamed. + * Note that the caller is responsible for setting the correct rename-file info + * (#FileSelectParams.renamefile or #FileSelectParams.rename_id). + */ void file_params_invoke_rename_postscroll(struct wmWindowManager *wm, struct wmWindow *win, SpaceFile *sfile); +/** + * To be executed whenever renaming ends (successfully or not). + */ void file_params_rename_end(struct wmWindowManager *wm, struct wmWindow *win, SpaceFile *sfile, struct FileDirEntry *rename_file); +/** + * Helper used by both main update code, and smooth-scroll timer, + * to try to enable rename editing from #FileSelectParams.renamefile name. + */ void file_params_renamefile_activate(struct SpaceFile *sfile, struct FileSelectParams *params); typedef void *onReloadFnData; @@ -147,20 +188,27 @@ typedef struct SpaceFile_Runtime { onReloadFnData on_reload_custom_data; } SpaceFile_Runtime; -/* Register an on-reload callback function. Note that there can only be one such function at a - * time; registering a new one will overwrite the previous one. */ +/** + * Register an on-reload callback function. Note that there can only be one such function at a + * time; registering a new one will overwrite the previous one. + */ void file_on_reload_callback_register(struct SpaceFile *sfile, onReloadFn callback, onReloadFnData custom_data); /* file_panels.c */ + void file_tool_props_region_panels_register(struct ARegionType *art); void file_execute_region_panels_register(struct ARegionType *art); void file_tools_region_panels_register(struct ARegionType *art); /* file_utils.c */ + void file_tile_boundbox(const ARegion *region, FileLayout *layout, const int file, rcti *r_bounds); +/** + * If \a path leads to a .blend, remove the trailing slash (if needed). + */ void file_path_to_ui_path(const char *path, char *r_pathi, int max_size); /* asset_catalog_tree_view.cc */ @@ -172,7 +220,8 @@ FileAssetCatalogFilterSettingsHandle *file_create_asset_catalog_filter_settings( void file_delete_asset_catalog_filter_settings( FileAssetCatalogFilterSettingsHandle **filter_settings_handle); /** - * \return True if the stored filter settings were modified. + * \return True if the file list should update its filtered results + * (e.g. because filtering parameters changed). */ bool file_set_asset_catalog_filter_settings( FileAssetCatalogFilterSettingsHandle *filter_settings_handle, diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 1abdaa542c2..76a0e4f42e7 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -1694,9 +1694,6 @@ void file_operator_to_sfile(Main *bmain, SpaceFile *sfile, wmOperator *op) /* XXX, files and dirs updates missing, not really so important though */ } -/** - * Use to set the file selector path from some arbitrary source. - */ void file_sfile_filepath_set(SpaceFile *sfile, const char *filepath) { FileSelectParams *params = ED_fileselect_get_active_params(sfile); @@ -1746,7 +1743,6 @@ void file_draw_check(bContext *C) file_draw_check_ex(C, area); } -/* for use with; UI_block_func_set */ void file_draw_check_cb(bContext *C, void *UNUSED(arg1), void *UNUSED(arg2)) { file_draw_check(C); @@ -1907,10 +1903,6 @@ static int file_execute_mouse_invoke(bContext *C, wmOperator *UNUSED(op), const return OPERATOR_FINISHED; } -/** - * Variation of #FILE_OT_execute that accounts for some mouse specific handling. Otherwise calls - * the same logic. - */ void FILE_OT_mouse_execute(wmOperatorType *ot) { /* identifiers */ diff --git a/source/blender/editors/space_file/file_utils.c b/source/blender/editors/space_file/file_utils.c index 186bc04fafe..fbe2426021b 100644 --- a/source/blender/editors/space_file/file_utils.c +++ b/source/blender/editors/space_file/file_utils.c @@ -46,9 +46,6 @@ void file_tile_boundbox(const ARegion *region, FileLayout *layout, const int fil ymax); } -/** - * If \a path leads to a .blend, remove the trailing slash (if needed). - */ void file_path_to_ui_path(const char *path, char *r_path, int max_size) { char tmp_path[PATH_MAX]; diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index a580cf672f4..3358cffbce6 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -179,7 +179,6 @@ int folderlist_clear_next(struct SpaceFile *sfile) return 1; } -/* not listbase itself */ void folderlist_free(ListBase *folderlist) { if (folderlist) { @@ -1131,11 +1130,6 @@ void filelist_setfilter_options(FileList *filelist, } } -/** - * Set the indexer to be used by the filelist. - * - * The given indexer allocation should be handled by the caller or defined statically. - */ void filelist_setindexer(FileList *filelist, const FileIndexerType *indexer) { BLI_assert(filelist); @@ -1144,10 +1138,6 @@ void filelist_setindexer(FileList *filelist, const FileIndexerType *indexer) filelist->indexer = indexer; } -/** - * \param catalog_id: The catalog that should be filtered by if \a catalog_visibility is - * #FILE_SHOW_ASSETS_FROM_CATALOG. May be NULL otherwise. - */ void filelist_set_asset_catalog_filter_options( FileList *filelist, eFileSel_Params_AssetCatalogVisibility catalog_visibility, @@ -1187,9 +1177,6 @@ static bool filelist_compare_asset_libraries(const AssetLibraryReference *librar return true; } -/** - * \param asset_library_ref: May be NULL to unset the library. - */ void filelist_setlibrary(FileList *filelist, const AssetLibraryReference *asset_library_ref) { /* Unset if needed. */ @@ -1979,10 +1966,6 @@ void filelist_clear(FileList *filelist) filelist_clear_ex(filelist, true, true, true); } -/** - * A "smarter" version of #filelist_clear() that calls partial clearing based on the filelist - * force-reset flags. - */ void filelist_clear_from_reset_tag(FileList *filelist) { /* Do a full clear if needed. */ @@ -2089,9 +2072,6 @@ bool filelist_is_dir(struct FileList *filelist, const char *path) return filelist->check_dir_fn(filelist, (char *)path, false); } -/** - * May modify in place given r_dir, which is expected to be FILE_MAX_LIBEXTRA length. - */ void filelist_setdir(struct FileList *filelist, char *r_dir) { const bool allow_invalid = filelist->asset_library_ref != NULL; @@ -2149,12 +2129,6 @@ bool filelist_needs_reset_on_main_changes(const FileList *filelist) return (filelist->tags & FILELIST_TAGS_USES_MAIN_DATA) != 0; } -/** - * Limited version of full update done by space_file's file_refresh(), - * to be used by operators and such. - * Ensures given filelist is ready to be used (i.e. it is filtered and sorted), - * unless it is tagged for a full refresh. - */ int filelist_files_ensure(FileList *filelist) { if (!filelist_needs_force_reset(filelist) || !filelist_needs_reading(filelist)) { @@ -2267,10 +2241,6 @@ FileDirEntry *filelist_file(struct FileList *filelist, int index) return filelist_file_ex(filelist, index, true); } -/** - * Find a file from a file name, or more precisely, its file-list relative path, inside the - * filtered items. \return The index of the found file or -1. - */ int filelist_file_find_path(struct FileList *filelist, const char *filename) { if (filelist->filelist.nbr_entries_filtered == FILEDIR_NBR_ENTRIES_UNSET) { @@ -2291,10 +2261,6 @@ int filelist_file_find_path(struct FileList *filelist, const char *filename) return -1; } -/** - * Find a file representing \a id. - * \return The index of the found file or -1. - */ int filelist_file_find_id(const FileList *filelist, const ID *id) { if (filelist->filelist.nbr_entries_filtered == FILEDIR_NBR_ENTRIES_UNSET) { @@ -2311,9 +2277,6 @@ int filelist_file_find_id(const FileList *filelist, const ID *id) return -1; } -/** - * Get the ID a file represents (if any). For #FILE_MAIN, #FILE_MAIN_ASSET. - */ ID *filelist_file_get_id(const FileDirEntry *file) { return file->id; @@ -2409,7 +2372,6 @@ static void filelist_file_cache_block_release(struct FileList *filelist, } } -/* Load in cache all entries "around" given index (as much as block cache may hold). */ bool filelist_file_cache_block(struct FileList *filelist, const int index) { FileListEntryCache *cache = &filelist->filelist_cache; @@ -2752,8 +2714,6 @@ static bool file_is_blend_backup(const char *str) return retval; } -/* TODO: Maybe we should move this to BLI? - * On the other hand, it's using defines from space-file area, so not sure... */ int ED_path_extension_type(const char *path) { if (BLO_has_bfile_extension(path)) { @@ -2981,9 +2941,6 @@ bool filelist_entry_is_selected(FileList *filelist, const int index) return selection_state != 0; } -/** - * Set selection of the '..' parent entry, but only if it's actually visible. - */ void filelist_entry_parent_select_set(FileList *filelist, FileSelType select, uint flag, @@ -2994,7 +2951,6 @@ void filelist_entry_parent_select_set(FileList *filelist, } } -/* WARNING! dir must be FILE_MAX_LIBEXTRA long! */ bool filelist_islibrary(struct FileList *filelist, char *dir, char **r_group) { return BLO_library_path_explode(filelist->filelist.root, dir, r_group, NULL); diff --git a/source/blender/editors/space_file/filelist.h b/source/blender/editors/space_file/filelist.h index e7cda106224..0119a9b4f52 100644 --- a/source/blender/editors/space_file/filelist.h +++ b/source/blender/editors/space_file/filelist.h @@ -51,6 +51,7 @@ typedef enum FileCheckType { CHECK_ALL = 3, } FileCheckType; +/* not listbase itself */ void folderlist_free(struct ListBase *folderlist); void folderlist_popdir(struct ListBase *folderlist, char *dir); void folderlist_pushdir(struct ListBase *folderlist, const char *dir); @@ -73,13 +74,25 @@ void filelist_setfilter_options(struct FileList *filelist, const bool filter_assets_only, const char *filter_glob, const char *filter_search); +/** + * Set the indexer to be used by the filelist. + * + * The given indexer allocation should be handled by the caller or defined statically. + */ void filelist_setindexer(struct FileList *filelist, const struct FileIndexerType *indexer); +/** + * \param catalog_id: The catalog that should be filtered by if \a catalog_visibility is + * #FILE_SHOW_ASSETS_FROM_CATALOG. May be NULL otherwise. + */ void filelist_set_asset_catalog_filter_options( struct FileList *filelist, eFileSel_Params_AssetCatalogVisibility catalog_visibility, const struct bUUID *catalog_id); void filelist_tag_needs_filtering(struct FileList *filelist); void filelist_filter(struct FileList *filelist); +/** + * \param asset_library_ref: May be NULL to unset the library. + */ void filelist_setlibrary(struct FileList *filelist, const struct AssetLibraryReference *asset_library_ref); @@ -98,24 +111,51 @@ void filelist_clear_ex(struct FileList *filelist, const bool do_asset_library, const bool do_cache, const bool do_selection); +/** + * A "smarter" version of #filelist_clear() that calls partial clearing based on the filelist + * force-reset flags. + */ void filelist_clear_from_reset_tag(struct FileList *filelist); void filelist_free(struct FileList *filelist); const char *filelist_dir(struct FileList *filelist); bool filelist_is_dir(struct FileList *filelist, const char *path); +/** + * May modify in place given r_dir, which is expected to be FILE_MAX_LIBEXTRA length. + */ void filelist_setdir(struct FileList *filelist, char *r_dir); +/** + * Limited version of full update done by space_file's file_refresh(), + * to be used by operators and such. + * Ensures given filelist is ready to be used (i.e. it is filtered and sorted), + * unless it is tagged for a full refresh. + */ int filelist_files_ensure(struct FileList *filelist); int filelist_needs_reading(struct FileList *filelist); FileDirEntry *filelist_file(struct FileList *filelist, int index); FileDirEntry *filelist_file_ex(struct FileList *filelist, int index, bool use_request); +/** + * Find a file from a file name, or more precisely, its file-list relative path, inside the + * filtered items. \return The index of the found file or -1. + */ int filelist_file_find_path(struct FileList *filelist, const char *file); +/** + * Find a file representing \a id. + * \return The index of the found file or -1. + */ int filelist_file_find_id(const struct FileList *filelist, const struct ID *id); +/** + * Get the ID a file represents (if any). For #FILE_MAIN, #FILE_MAIN_ASSET. + */ struct ID *filelist_file_get_id(const struct FileDirEntry *file); bool filelist_uid_is_set(const FileUID uid); void filelist_uid_unset(FileUID *r_uid); void filelist_file_cache_slidingwindow_set(struct FileList *filelist, size_t window_size); +/** + * Load in cache all entries "around" given index (as much as block cache may hold). + */ bool filelist_file_cache_block(struct FileList *filelist, const int index); bool filelist_needs_force_reset(struct FileList *filelist); @@ -147,6 +187,9 @@ unsigned int filelist_entry_select_index_get(struct FileList *filelist, const int index, FileCheckType check); bool filelist_entry_is_selected(struct FileList *filelist, const int index); +/** + * Set selection of the '..' parent entry, but only if it's actually visible. + */ void filelist_entry_parent_select_set(struct FileList *filelist, FileSelType select, unsigned int flag, @@ -157,6 +200,9 @@ void filelist_setrecursion(struct FileList *filelist, const int recursion_level) struct AssetLibrary *filelist_asset_library(struct FileList *filelist); struct BlendHandle *filelist_lib(struct FileList *filelist); +/** + * \param dir: Must be #FILE_MAX_LIBEXTRA long! + */ bool filelist_islibrary(struct FileList *filelist, char *dir, char **r_group); void filelist_freelib(struct FileList *filelist); diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index 8d89fbbd80f..e3ac5840da3 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -358,9 +358,6 @@ static FileSelectParams *fileselect_ensure_updated_file_params(SpaceFile *sfile) return params; } -/** - * If needed, create and return the file select parameters for the active browse mode. - */ FileSelectParams *ED_fileselect_ensure_active_params(SpaceFile *sfile) { switch ((eFileBrowse_Mode)sfile->browse_mode) { @@ -380,9 +377,6 @@ FileSelectParams *ED_fileselect_ensure_active_params(SpaceFile *sfile) return NULL; } -/** - * Get the file select parameters for the active browse mode. - */ FileSelectParams *ED_fileselect_get_active_params(const SpaceFile *sfile) { if (!sfile) { @@ -647,13 +641,6 @@ void ED_fileselect_set_params_from_userdef(SpaceFile *sfile) } } -/** - * Update the user-preference data for the file space. In fact, this also contains some - * non-FileSelectParams data, but we can safely ignore this. - * - * \param temp_win_size: If the browser was opened in a temporary window, - * pass its size here so we can store that in the preferences. Otherwise NULL. - */ void ED_fileselect_params_to_userdef(SpaceFile *sfile, const int temp_win_size[2], const bool is_maximized) @@ -691,9 +678,6 @@ void ED_fileselect_params_to_userdef(SpaceFile *sfile, } } -/** - * Sets FileSelectParams->file (name of selected file) - */ void fileselect_file_set(SpaceFile *sfile, const int index) { const struct FileDirEntry *file = filelist_file(sfile->files, index); @@ -814,10 +798,6 @@ int ED_fileselect_layout_offset(FileLayout *layout, int x, int y) return active_file; } -/** - * Get the currently visible bounds of the layout in screen space. Matches View2D.mask minus the - * top column-header row. - */ void ED_fileselect_layout_maskrect(const FileLayout *layout, const View2D *v2d, rcti *r_rect) { *r_rect = v2d->mask; @@ -857,9 +837,6 @@ void ED_fileselect_layout_tilepos(FileLayout *layout, int tile, int *x, int *y) } } -/** - * Check if the region coordinate defined by \a x and \a y are inside the column header. - */ bool file_attribute_column_header_is_inside(const View2D *v2d, const FileLayout *layout, int x, @@ -886,9 +863,6 @@ bool file_attribute_column_type_enabled(const FileSelectParams *params, } } -/** - * Find the column type at region coordinate given by \a x (y doesn't matter for this). - */ FileAttributeColumnType file_attribute_column_type_find_isect(const View2D *v2d, const FileSelectParams *params, FileLayout *layout, @@ -1105,10 +1079,6 @@ FileLayout *ED_fileselect_get_layout(struct SpaceFile *sfile, ARegion *region) return sfile->layout; } -/** - * Support updating the directory even when this isn't the active space - * needed so RNA properties update function isn't context sensitive, see T70255. - */ void ED_file_change_dir_ex(bContext *C, ScrArea *area) { /* May happen when manipulating non-active spaces. */ @@ -1304,12 +1274,6 @@ void file_params_smoothscroll_timer_clear(wmWindowManager *wm, wmWindow *win, Sp sfile->smoothscroll_timer = NULL; } -/** - * Set the renaming-state to #FILE_PARAMS_RENAME_POSTSCROLL_PENDING and trigger the smooth-scroll - * timer. To be used right after a file was renamed. - * Note that the caller is responsible for setting the correct rename-file info - * (#FileSelectParams.renamefile or #FileSelectParams.rename_id). - */ void file_params_invoke_rename_postscroll(wmWindowManager *wm, wmWindow *win, SpaceFile *sfile) { FileSelectParams *params = ED_fileselect_get_active_params(sfile); @@ -1323,9 +1287,6 @@ void file_params_invoke_rename_postscroll(wmWindowManager *wm, wmWindow *win, Sp sfile->scroll_offset = 0; } -/** - * To be executed whenever renaming ends (successfully or not). - */ void file_params_rename_end(wmWindowManager *wm, wmWindow *win, SpaceFile *sfile, @@ -1357,10 +1318,6 @@ static int file_params_find_renamed(const FileSelectParams *params, struct FileL filelist_file_find_path(filelist, params->renamefile); } -/** - * Helper used by both main update code, and smooth-scroll timer, - * to try to enable rename editing from #FileSelectParams.renamefile name. - */ void file_params_renamefile_activate(SpaceFile *sfile, FileSelectParams *params) { BLI_assert(params->rename_flag != 0); diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index c8e9742be53..bbf3c6f768c 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -1003,7 +1003,6 @@ static void file_id_remap(ScrArea *area, SpaceLink *sl, ID *UNUSED(old_id), ID * file_reset_filelist_showing_main_data(area, sfile); } -/* only called once, from space/spacetypes.c */ void ED_spacetype_file(void) { SpaceType *st = MEM_callocN(sizeof(SpaceType), "spacetype file"); |