[Libreoffice-commits] core.git: sal/osl

Stephan Bergmann sbergman at redhat.com
Wed Aug 16 09:52:10 UTC 2017


 sal/osl/w32/pipe.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 2f2772267657b704dbc108f95ca3b9f49fb93be1
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Aug 16 11:49:59 2017 +0200

    Dead code
    
    ...introduced with aeb3853a21435f00f225d751e56184e875bc46ed "osl: (Win32) check
    allocated pipe succeeded, otherwise needs to fail"
    
    Change-Id: Ieeb0b1755e74f583d1b52447eb84f7512eb07914

diff --git a/sal/osl/w32/pipe.cxx b/sal/osl/w32/pipe.cxx
index 218719322e27..8dfdec0831e8 100644
--- a/sal/osl/w32/pipe.cxx
+++ b/sal/osl/w32/pipe.cxx
@@ -153,8 +153,6 @@ oslPipe SAL_CALL osl_createPipe(rtl_uString *strPipeName, oslPipeOptions Options
     pPipe = osl_createPipeImpl();
 
     assert(pPipe);  // if osl_createPipeImpl() cannot init. a new pipe, this is a failure
-    if (!pPipe)
-        return nullptr;
 
     osl_atomic_increment(&(pPipe->m_Reference));
 


More information about the Libreoffice-commits mailing list