summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file_misc.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-17 16:38:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-17 16:38:04 +0200
commit139be0f4c898c926f9bb5954d0054e8617b6fd21 (patch)
tree862dae45629dab2ffa62939df31b24e6ccd7468d /sal/osl/unx/file_misc.cxx
parent5a64d8b20ed74559617d2f97c3f941842b6a9ea1 (diff)
Remove excess SAL_WARNs
Each such precondition violation for that URE API function would already result in osl_File_E_INVAL anyway. Change-Id: I279949ae8f341e6272bb4574da712fd693461acd
Diffstat (limited to 'sal/osl/unx/file_misc.cxx')
-rw-r--r--sal/osl/unx/file_misc.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx
index 8ee95ca2f484..5f2bd76f114b 100644
--- a/sal/osl/unx/file_misc.cxx
+++ b/sal/osl/unx/file_misc.cxx
@@ -347,10 +347,6 @@ oslFileError SAL_CALL osl_getNextDirectoryItem(oslDirectory pDirectory,
oslFileError SAL_CALL osl_getDirectoryItem(rtl_uString* ustrFileURL, oslDirectoryItem* pItem)
{
- SAL_WARN_IF((!ustrFileURL) || (ustrFileURL->length == 0), "sal.file",
- "Invalid file URL " << (ustrFileURL ? ("'" + OUString(ustrFileURL) + "'") : OUString("(null)")));
- SAL_WARN_IF(!pItem, "sal.file", "pItem is null");
-
rtl_uString* ustrSystemPath = nullptr;
oslFileError osl_error = osl_File_E_INVAL;