diff options
Diffstat (limited to 'sal/osl/unx/profile.cxx')
-rw-r--r-- | sal/osl/unx/profile.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx index db5c50717e14..edb76019ff5d 100644 --- a/sal/osl/unx/profile.cxx +++ b/sal/osl/unx/profile.cxx @@ -21,7 +21,6 @@ #include "readwrite_helper.hxx" #include "file_url.hxx" #include "unixerrnostring.hxx" -#include "uunxapi.hxx" #include <osl/diagnose.h> #include <osl/profile.h> @@ -948,10 +947,7 @@ static osl_TFile* openFileImpl(const char* pszFilename, oslProfileOption Profile SAL_INFO("sal.file", "open(" << pszFilename << ",O_RDONLY): " << UnixErrnoString(e)); } else - { SAL_INFO("sal.file", "open(" << pszFilename << ",O_RDONLY) => " << pFile->m_Handle); - osl::registerPathForFd(pFile->m_Handle, pszFilename); - } /* mfe: argghh!!! do not check if the file could be opened */ /* default mode expects it that way!!! */ @@ -967,10 +963,7 @@ static osl_TFile* openFileImpl(const char* pszFilename, oslProfileOption Profile return nullptr; } else - { SAL_INFO("sal.file", "open(" << pszFilename << ",...) => " << pFile->m_Handle); - osl::registerPathForFd(pFile->m_Handle, pszFilename); - } } /* set close-on-exec flag */ @@ -1014,8 +1007,7 @@ static osl_TStamp closeFileImpl(osl_TFile* pFile, oslProfileOption Flags) } close(pFile->m_Handle); - SAL_INFO("sal.file", "close(" << osl::fdAndPath(pFile->m_Handle) << ")"); - osl::unregisterPathForFd(pFile->m_Handle); + SAL_INFO("sal.file", "close(" << pFile->m_Handle << ")"); pFile->m_Handle = -1; } |