Revert "Fix else-after-returns throughout pdfium."
[pdfium.git] / fpdfsdk / src / javascript / JS_Runtime.cpp
index f21819a..34a451b 100644 (file)
@@ -65,8 +65,7 @@ void                                                  CJS_RuntimeFactory::Release()
 
 void                                                   CJS_RuntimeFactory::DeleteJSRuntime(IFXJS_Runtime* pRuntime)
 {
-       if(pRuntime)
-               delete (CJS_Runtime*)pRuntime;
+    delete (CJS_Runtime*)pRuntime;
 }
 
 CJS_GlobalData*        CJS_RuntimeFactory::NewGlobalData(CPDFDoc_Environment* pApp)
@@ -113,7 +112,6 @@ CJS_Runtime::CJS_Runtime(CPDFDoc_Environment * pApp) :
        m_pApp(pApp),
        m_pDocument(NULL),
        m_bBlocking(FALSE),
-       m_bRegistered(FALSE),
        m_pFieldEventPath(NULL),
         m_isolate(NULL)
 {