Kaydet (Commit) 0922085d authored tarafından Chris Sherlock's avatar Chris Sherlock

osl: remove comment cruft from pipe.cxx on win32 and unx

Change-Id: I774497c07f682a3923a6317af5804e477540995c
Reviewed-on: https://gerrit.libreoffice.org/39225Reviewed-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
Tested-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
üst e7884518
...@@ -62,7 +62,6 @@ static struct ...@@ -62,7 +62,6 @@ static struct
{ -1, osl_Pipe_E_invalidError } { -1, osl_Pipe_E_invalidError }
}; };
/* reverse map */
static oslPipeError osl_PipeErrorFromNative(int nativeType) static oslPipeError osl_PipeErrorFromNative(int nativeType)
{ {
int i = 0; int i = 0;
......
...@@ -43,10 +43,6 @@ typedef struct ...@@ -43,10 +43,6 @@ typedef struct
} oslPipeBuffer; } oslPipeBuffer;
/*****************************************************************************/
/* oslPipeImpl */
/*****************************************************************************/
struct oslPipeImpl struct oslPipeImpl
{ {
oslInterlockedCount m_Reference; oslInterlockedCount m_Reference;
...@@ -61,10 +57,6 @@ struct oslPipeImpl ...@@ -61,10 +57,6 @@ struct oslPipeImpl
bool m_bClosed; bool m_bClosed;
}; };
/*****************************************************************************/
/* osl_create/destroy-PipeImpl */
/*****************************************************************************/
oslPipe osl_createPipeImpl(void) oslPipe osl_createPipeImpl(void)
{ {
oslPipe pPipe; oslPipe pPipe;
...@@ -108,9 +100,6 @@ void osl_destroyPipeImpl(oslPipe pPipe) ...@@ -108,9 +100,6 @@ void osl_destroyPipeImpl(oslPipe pPipe)
} }
} }
/*****************************************************************************/
/* osl_createPipe */
/*****************************************************************************/
oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options, oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options,
oslSecurity Security) oslSecurity Security)
{ {
...@@ -239,7 +228,7 @@ oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options ...@@ -239,7 +228,7 @@ oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options
} }
else else
{ {
// Pipe instance maybe catched by another client -> try again // Pipe instance maybe cached by another client -> try again
} }
} }
} while ( fPipeAvailable ); } while ( fPipeAvailable );
...@@ -280,16 +269,12 @@ void SAL_CALL osl_closePipe(oslPipe pPipe) ...@@ -280,16 +269,12 @@ void SAL_CALL osl_closePipe(oslPipe pPipe)
/* if we have a system pipe close it */ /* if we have a system pipe close it */
if (pPipe->m_File != INVALID_HANDLE_VALUE) if (pPipe->m_File != INVALID_HANDLE_VALUE)
{ {
/* FlushFileBuffers(pPipe->m_File); */
DisconnectNamedPipe(pPipe->m_File); DisconnectNamedPipe(pPipe->m_File);
CloseHandle(pPipe->m_File); CloseHandle(pPipe->m_File);
} }
} }
} }
/*****************************************************************************/
/* osl_acceptPipe */
/*****************************************************************************/
oslPipe SAL_CALL osl_acceptPipe(oslPipe pPipe) oslPipe SAL_CALL osl_acceptPipe(oslPipe pPipe)
{ {
oslPipe pAcceptedPipe = nullptr; oslPipe pAcceptedPipe = nullptr;
...@@ -322,8 +307,8 @@ oslPipe SAL_CALL osl_acceptPipe(oslPipe pPipe) ...@@ -322,8 +307,8 @@ oslPipe SAL_CALL osl_acceptPipe(oslPipe pPipe)
// blocking call to accept // blocking call to accept
if( !GetOverlappedResult(pPipe->m_File, &os, &nBytesTransfered, TRUE)) if( !GetOverlappedResult(pPipe->m_File, &os, &nBytesTransfered, TRUE))
{ {
// Possible error could be that between ConnectNamedPipe and GetOverlappedResult a connect // Possible error could be that between ConnectNamedPipe and
// took place. // GetOverlappedResult a connect took place.
switch (GetLastError()) switch (GetLastError())
{ {
...@@ -366,9 +351,6 @@ oslPipe SAL_CALL osl_acceptPipe(oslPipe pPipe) ...@@ -366,9 +351,6 @@ oslPipe SAL_CALL osl_acceptPipe(oslPipe pPipe)
return pAcceptedPipe; return pAcceptedPipe;
} }
/*****************************************************************************/
/* osl_receivePipe */
/*****************************************************************************/
sal_Int32 SAL_CALL osl_receivePipe(oslPipe pPipe, sal_Int32 SAL_CALL osl_receivePipe(oslPipe pPipe,
void* pBuffer, void* pBuffer,
sal_Int32 BytesToRead) sal_Int32 BytesToRead)
...@@ -405,9 +387,6 @@ sal_Int32 SAL_CALL osl_receivePipe(oslPipe pPipe, ...@@ -405,9 +387,6 @@ sal_Int32 SAL_CALL osl_receivePipe(oslPipe pPipe,
return nBytes; return nBytes;
} }
/*****************************************************************************/
/* osl_sendPipe */
/*****************************************************************************/
sal_Int32 SAL_CALL osl_sendPipe(oslPipe pPipe, sal_Int32 SAL_CALL osl_sendPipe(oslPipe pPipe,
const void* pBuffer, const void* pBuffer,
sal_Int32 BytesToSend) sal_Int32 BytesToSend)
...@@ -484,9 +463,6 @@ sal_Int32 SAL_CALL osl_readPipe(oslPipe pPipe, void *pBuffer, sal_Int32 n) ...@@ -484,9 +463,6 @@ sal_Int32 SAL_CALL osl_readPipe(oslPipe pPipe, void *pBuffer, sal_Int32 n)
return BytesRead; return BytesRead;
} }
/*****************************************************************************/
/* osl_getLastPipeError */
/*****************************************************************************/
oslPipeError SAL_CALL osl_getLastPipeError(oslPipe pPipe) oslPipeError SAL_CALL osl_getLastPipeError(oslPipe pPipe)
{ {
oslPipeError Error; oslPipeError Error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment