summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/common/path
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Runtime/common/path')
-rw-r--r--src/VBox/Runtime/common/path/RTPathAbsDup.cpp7
-rw-r--r--src/VBox/Runtime/common/path/RTPathParentLength.cpp12
-rw-r--r--src/VBox/Runtime/common/path/RTPathParseSimple.cpp18
-rw-r--r--src/VBox/Runtime/common/path/RTPathRealDup.cpp7
-rw-r--r--src/VBox/Runtime/common/path/comparepaths.cpp42
5 files changed, 0 insertions, 86 deletions
diff --git a/src/VBox/Runtime/common/path/RTPathAbsDup.cpp b/src/VBox/Runtime/common/path/RTPathAbsDup.cpp
index eb3dcbeea17..040cb329053 100644
--- a/src/VBox/Runtime/common/path/RTPathAbsDup.cpp
+++ b/src/VBox/Runtime/common/path/RTPathAbsDup.cpp
@@ -42,13 +42,6 @@
#include <iprt/path.h>
-/**
- * Same as RTPathAbs only the result is RTStrDup()'ed.
- *
- * @returns Pointer to real path. Use RTStrFree() to free this string.
- * @returns NULL if RTPathAbs() or RTStrDup() fails.
- * @param pszPath The path to resolve.
- */
RTDECL(char *) RTPathAbsDup(const char *pszPath)
{
return RTPathAbsExDup(NULL, pszPath, RTPATH_STR_F_STYLE_HOST);
diff --git a/src/VBox/Runtime/common/path/RTPathParentLength.cpp b/src/VBox/Runtime/common/path/RTPathParentLength.cpp
index 43263da261b..82acadd9a54 100644
--- a/src/VBox/Runtime/common/path/RTPathParentLength.cpp
+++ b/src/VBox/Runtime/common/path/RTPathParentLength.cpp
@@ -84,18 +84,6 @@ RTDECL(size_t) RTPathParentLengthEx(const char *pszPath, uint32_t fFlags)
}
-
-
-/**
- * Determins the length of the path specifying the parent directory, including
- * trailing path separator (if present).
- *
- * @returns Parent directory part of the path, 0 if no parent.
- * @param pszPath The path to examine.
- *
- * @note Currently ignores UNC and may therefore return the server or
- * double-slash prefix as parent.
- */
RTDECL(size_t) RTPathParentLength(const char *pszPath)
{
#if RTPATH_STYLE == RTPATH_STR_F_STYLE_DOS
diff --git a/src/VBox/Runtime/common/path/RTPathParseSimple.cpp b/src/VBox/Runtime/common/path/RTPathParseSimple.cpp
index 91627abf125..0dd35996669 100644
--- a/src/VBox/Runtime/common/path/RTPathParseSimple.cpp
+++ b/src/VBox/Runtime/common/path/RTPathParseSimple.cpp
@@ -45,24 +45,6 @@
#include <iprt/ctype.h>
-/**
- * Parses a path.
- *
- * It figures the length of the directory component, the offset of
- * the file name and the location of the suffix dot.
- *
- * @returns The path length.
- *
- * @param pszPath Path to find filename in.
- * @param pcchDir Where to put the length of the directory component. If
- * no directory, this will be 0. Optional.
- * @param poffName Where to store the filename offset.
- * If empty string or if it's ending with a slash this
- * will be set to -1. Optional.
- * @param poffSuff Where to store the suffix offset (the last dot).
- * If empty string or if it's ending with a slash this
- * will be set to -1. Optional.
- */
RTDECL(size_t) RTPathParseSimple(const char *pszPath, size_t *pcchDir, ssize_t *poffName, ssize_t *poffSuff)
{
/*
diff --git a/src/VBox/Runtime/common/path/RTPathRealDup.cpp b/src/VBox/Runtime/common/path/RTPathRealDup.cpp
index 0fd53d0f1a4..7f9ed6537a0 100644
--- a/src/VBox/Runtime/common/path/RTPathRealDup.cpp
+++ b/src/VBox/Runtime/common/path/RTPathRealDup.cpp
@@ -46,13 +46,6 @@
-/**
- * Same as RTPathReal only the result is RTStrDup()'ed.
- *
- * @returns Pointer to real path. Use RTStrFree() to free this string.
- * @returns NULL if RTPathReal() or RTStrDup() fails.
- * @param pszPath
- */
RTDECL(char *) RTPathRealDup(const char *pszPath)
{
char szPath[RTPATH_MAX];
diff --git a/src/VBox/Runtime/common/path/comparepaths.cpp b/src/VBox/Runtime/common/path/comparepaths.cpp
index 04c038e94ca..96c0a48feac 100644
--- a/src/VBox/Runtime/common/path/comparepaths.cpp
+++ b/src/VBox/Runtime/common/path/comparepaths.cpp
@@ -113,54 +113,12 @@ static int rtPathCompare(const char *pszPath1, const char *pszPath2, bool fLimit
}
-/**
- * Compares two paths.
- *
- * The comparison takes platform-dependent details into account,
- * such as:
- * <ul>
- * <li>On DOS-like platforms, both separator chars (|\| and |/|) are considered
- * to be equal.
- * <li>On platforms with case-insensitive file systems, mismatching characters
- * are uppercased and compared again.
- * </ul>
- *
- * @returns @< 0 if the first path less than the second path.
- * @returns 0 if the first path identical to the second path.
- * @returns @> 0 if the first path greater than the second path.
- *
- * @param pszPath1 Path to compare (must be an absolute path).
- * @param pszPath2 Path to compare (must be an absolute path).
- *
- * @remarks File system details are currently ignored. This means that you won't
- * get case-insensitive compares on unix systems when a path goes into a
- * case-insensitive filesystem like FAT, HPFS, HFS, NTFS, JFS, or
- * similar. For NT, OS/2 and similar you'll won't get case-sensitive
- * compares on a case-sensitive file system.
- */
RTDECL(int) RTPathCompare(const char *pszPath1, const char *pszPath2)
{
return rtPathCompare(pszPath1, pszPath2, false /* full path lengths */);
}
-/**
- * Checks if a path starts with the given parent path.
- *
- * This means that either the path and the parent path matches completely, or
- * that the path is to some file or directory residing in the tree given by the
- * parent directory.
- *
- * The path comparison takes platform-dependent details into account,
- * see RTPathCompare() for details.
- *
- * @returns |true| when \a pszPath starts with \a pszParentPath (or when they
- * are identical), or |false| otherwise.
- *
- * @param pszPath Path to check, must be an absolute path.
- * @param pszParentPath Parent path, must be an absolute path.
- * No trailing directory slash!
- */
RTDECL(bool) RTPathStartsWith(const char *pszPath, const char *pszParentPath)
{
if (pszPath == pszParentPath)