Remove CPDFSDK_Annot::ResetAppearance().
authorNico Weber <thakis@chromium.org>
Thu, 31 Jul 2014 17:00:12 +0000 (10:00 -0700)
committerNico Weber <thakis@chromium.org>
Thu, 31 Jul 2014 17:00:12 +0000 (10:00 -0700)
It's unused, and it caused a warning about CPDFSDK_Widget::ResetAppearance()
failing to override it (since these two unrelated methods had the same name).

No intended behavior change.

BUG=pdfium:29
R=bo_xu@foxitsoftware.com

Review URL: https://codereview.chromium.org/429483004

fpdfsdk/include/fsdk_baseannot.h
fpdfsdk/src/fsdk_baseannot.cpp

index 4642508..50a6e1e 100644 (file)
@@ -160,7 +160,6 @@ public:
        
        void                                            ClearCachedAP();
        
-       virtual void                            ResetAppearance();
        void                                            WriteAppearance(const CFX_ByteString& sAPType, const CPDF_Rect& rcBBox, 
                const CPDF_Matrix& matrix, const CFX_ByteString& sContents,
                const CFX_ByteString& sAPState = "");
index c8e0735..ff054c8 100644 (file)
@@ -596,11 +596,6 @@ CFX_ByteString CPDFSDK_Annot::GetSubType() const
        return "";
 }
 
-void CPDFSDK_Annot::ResetAppearance()
-{
-       ASSERT(FALSE);
-}
-
 void CPDFSDK_Annot::DrawAppearance(CFX_RenderDevice* pDevice, const CPDF_Matrix* pUser2Device,
                                                                   CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOptions) 
 {