From b839a5d0765bd449fb4f3a58ed683ec0233a8acf Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 7 Mar 2020 00:13:03 +1100 Subject: Cleanup: remove BLI_cleanup_file In practice, references to files rarely have trailing slashes (by accident). Remove this function in favor of BLI_cleanup_path. --- source/blender/blenkernel/intern/bpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/bpath.c') diff --git a/source/blender/blenkernel/intern/bpath.c b/source/blender/blenkernel/intern/bpath.c index 26e8bbde009..38f0e516beb 100644 --- a/source/blender/blenkernel/intern/bpath.c +++ b/source/blender/blenkernel/intern/bpath.c @@ -807,13 +807,13 @@ bool BKE_bpath_relocate_visitor(void *pathbase_v, char *path_dst, const char *pa } /* Make referenced file absolute. This would be a side-effect of - * BLI_cleanup_file, but we do it explicitly so we know if it changed. */ + * BLI_cleanup_path, but we do it explicitly so we know if it changed. */ BLI_strncpy(filepath, path_src, FILE_MAX); if (BLI_path_abs(filepath, base_old)) { /* Path was relative and is now absolute. Remap. * Important BLI_cleanup_dir runs before the path is made relative * because it wont work for paths that start with "//../" */ - BLI_cleanup_file(base_new, filepath); + BLI_cleanup_path(base_new, filepath); BLI_path_rel(filepath, base_new); BLI_strncpy(path_dst, filepath, FILE_MAX); return true; -- cgit v1.2.3