sal/osl/unx/file_misc.cxx   |    2 --
 sal/osl/w32/file_dirvol.cxx |    3 ---
 2 files changed, 5 deletions(-)

New commits:
commit ab85fa0f162c40c3c5f00b189d43c554e5a7861d
Author:     Mike Kaganski <[email protected]>
AuthorDate: Mon Feb 19 16:03:33 2024 +0600
Commit:     Mike Kaganski <[email protected]>
CommitDate: Mon Feb 19 16:16:24 2024 +0100

    Drop obsolete comments
    
    They seem to have never been useful, ever since commits
    4e093f7f3404d09ee302b119190a968f4f109427 (INTEGRATION: CWS sal05 (1.1.2);
    FILE ADDED, 2004-02-03) and 0318a882ecfa17030bcccbc05d6c34e3293b0ef2
    (INTEGRATION: CWS sal05 (1.1.2); FILE ADDED, 2004-02-03).
    
    Change-Id: Ia68ee2f6facd9b64a098c630c3fed0d227e92e2b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163587
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx
index 752c85393b86..eb0cb1b414df 100644
--- a/sal/osl/unx/file_misc.cxx
+++ b/sal/osl/unx/file_misc.cxx
@@ -550,8 +550,6 @@ oslFileError SAL_CALL osl_createDirectoryPath(
 
     osl::systemPathRemoveSeparator(sys_path);
 
-    // const_cast because sys_path is a local copy which we want to modify 
inplace instead of
-    // copy it into another buffer on the heap again
     return create_dir_recursively_(sys_path.pData->buffer, 
aDirectoryCreationCallbackFunc, pData);
 }
 
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index 84ccd28de8c7..65b8d889b017 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -633,9 +633,6 @@ oslFileError SAL_CALL osl_createDirectoryPath(
 
     osl::systemPathRemoveSeparator(sys_path);
 
-    // const_cast because sys_path is a local copy
-    // which we want to modify inplace instead of
-    // copy it into another buffer on the heap again
     return oslTranslateFileError(create_dir_recursively_(
         sys_path.pData, aDirectoryCreationCallbackFunc, pData));
 }

Reply via email to