fix OSL_DEBUG_LEVEL > 1 build

Change-Id: If0a98411e5cbcc3411c8b1135df2848563cf320c
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index 4ad4ef8..9a58928 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -3251,10 +3251,6 @@ uno::Reference< text::XTextCursor >  SwXTextFrame::createTextCursor() throw( uno
        SwXTextCursor *const pXCursor = new SwXTextCursor(
                 *pFormat->GetDoc(), this, CURSOR_FRAME, *aPam.GetPoint());
        aRef =  static_cast<text::XWordCursor*>(pXCursor);
#if OSL_DEBUG_LEVEL > 1
        SwUnoCrsr *const pUnoCrsr = pXCursor->GetCursor();
        (void) pUnoCrsr;
#endif
    }
    else
        throw uno::RuntimeException();