diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 16:13:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 16:19:01 +0300 |
commit | b839a5d0765bd449fb4f3a58ed683ec0233a8acf (patch) | |
tree | 786410ae468b9ecb2f8c3c37dc4b39f0167d7f5d /source/blender/blenlib/intern/path_util.c | |
parent | 0b16b63d87e8a217cd73ec3220b4cb9af69ac355 (diff) |
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.
Diffstat (limited to 'source/blender/blenlib/intern/path_util.c')
-rw-r--r-- | source/blender/blenlib/intern/path_util.c | 9 |
1 files changed, 0 insertions, 9 deletions
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 @@ -270,15 +270,6 @@ void BLI_cleanup_dir(const char *relabase, char *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. * * \return true if \a fname was changed, false otherwise. |