summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-05 01:11:33 +0200
committerVicent Marti <tanoku@gmail.com>2011-07-05 02:09:05 +0200
commiteec3fe394ad5953cc5e290e8bc6492dfbe463a1f (patch)
tree049e3c3956cec1841f0c9e9e014212c856890ecd /src/fileops.h
parent19ac1ed702b043790f4a6f0d095dd81f078b6c4c (diff)
downloadlibgit2-eec3fe394ad5953cc5e290e8bc6492dfbe463a1f.tar.gz
fileutils: Finish dropping the old `prettify_path`
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/fileops.h b/src/fileops.h
index c9ede4978..4bfebe9d4 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -149,54 +149,4 @@ extern int git_futils_direach(
extern int git_futils_cmp_path(const char *name1, int len1, int isdir1,
const char *name2, int len2, int isdir2);
-
-/**
- * Clean up a provided absolute or relative directory path.
- *
- * This prettification relies on basic operations such as coalescing
- * multiple forward slashes into a single slash, removing '.' and
- * './' current directory segments, and removing parent directory
- * whenever '..' is encountered.
- *
- * If not empty, the returned path ends with a forward slash.
- *
- * For instance, this will turn "d1/s1///s2/..//../s3" into "d1/s3/".
- *
- * This only performs a string based analysis of the path.
- * No checks are done to make sure the path actually makes sense from
- * the file system perspective.
- *
- * @param buffer_out buffer to populate with the normalized path.
- * @param size buffer size.
- * @param path directory path to clean up.
- * @return
- * - GIT_SUCCESS on success;
- * - GIT_ERROR when the input path is invalid or escapes the current directory.
- */
-int git_futils_prettify_dir(char *buffer_out, size_t size, const char *path, const char *base_path);
-
-/**
- * Clean up a provided absolute or relative file path.
- *
- * This prettification relies on basic operations such as coalescing
- * multiple forward slashes into a single slash, removing '.' and
- * './' current directory segments, and removing parent directory
- * whenever '..' is encountered.
- *
- * For instance, this will turn "d1/s1///s2/..//../s3" into "d1/s3".
- *
- * This only performs a string based analysis of the path.
- * No checks are done to make sure the path actually makes sense from
- * the file system perspective.
- *
- * @param buffer_out buffer to populate with the normalized path.
- * @param size buffer size.
- * @param path file path to clean up.
- * @return
- * - GIT_SUCCESS on success;
- * - GIT_ERROR when the input path is invalid or escapes the current directory.
- */
-int git_futils_prettyify_file(char *buffer_out, size_t size, const char *path, const char *base_path);
-
-
#endif /* INCLUDE_fileops_h__ */