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/blenlib/intern/path_util.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source/blender/blenlib/intern/path_util.c') diff --git a/source/blender/blenlib/intern/path_util.c b/source/blender/blenlib/intern/path_util.c index e3c455fe417..48148fc1134 100644 --- a/source/blender/blenlib/intern/path_util.c +++ b/source/blender/blenlib/intern/path_util.c @@ -269,15 +269,6 @@ void BLI_cleanup_dir(const char *relabase, char *dir) BLI_add_slash(dir); } -/** - * Cleanup filepath ensuring no trailing slash. - */ -void BLI_cleanup_file(const char *relabase, char *path) -{ - BLI_cleanup_path(relabase, path); - BLI_del_slash(path); -} - /** * Make given name safe to be used in paths. * -- cgit v1.2.3