Replace some Release() calls with virtual destructors.
[pdfium.git] / fpdfsdk / src / fsdk_baseform.cpp
index 9ea2f4e..3e5e563 100644 (file)
@@ -2410,7 +2410,6 @@ CPDFSDK_InterForm::CPDFSDK_InterForm(CPDFSDK_Document* pDocument)
 
 CPDFSDK_InterForm::~CPDFSDK_InterForm()
 {
-       ASSERT(m_pInterForm != NULL);
        delete m_pInterForm;
        m_pInterForm = NULL;
 
@@ -2418,21 +2417,6 @@ CPDFSDK_InterForm::~CPDFSDK_InterForm()
        m_XFAMap.RemoveAll();
 }
 
-void CPDFSDK_InterForm::Destroy()
-{
-       delete this;
-}
-
-CPDF_InterForm* CPDFSDK_InterForm::GetInterForm()
-{
-       return m_pInterForm;
-}
-
-CPDFSDK_Document* CPDFSDK_InterForm::GetDocument()
-{
-       return m_pDocument;
-}
-
 FX_BOOL CPDFSDK_InterForm::HighlightWidgets()
 {
        return FALSE;