From 03d010fa29612e7a5fb60b180160a160d32817c3 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 7 Oct 2016 10:08:33 +0200 Subject: [PATCH] CComponentsButton: remove enableShadow() from button class is not required --- src/gui/components/cc_frm_button.cpp | 7 ------- src/gui/components/cc_frm_button.h | 6 ------ 2 files changed, 13 deletions(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index 216a9879f..c20bcf01d 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -290,10 +290,3 @@ void CComponentsButton::paint(bool do_save_bg) //paint form contents paintForm(do_save_bg); } - -void CComponentsButton::enableShadow(int mode, const int& shadow_width, bool force_paint) -{ - shadow_w = shadow_width; - shadow_force = force_paint; - shadow = mode; -} diff --git a/src/gui/components/cc_frm_button.h b/src/gui/components/cc_frm_button.h index 1235dd0b9..80653e2be 100644 --- a/src/gui/components/cc_frm_button.h +++ b/src/gui/components/cc_frm_button.h @@ -195,12 +195,6 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen inline virtual void setButtonAlias(const int& alias_value){cc_btn_alias = alias_value;}; ///returns an alias value from button object, see also cc_btn_alias inline virtual int getButtonAlias(){return cc_btn_alias;}; - - /**1st parameter requires defines CC_SHADOW_ON (default), CC_SHADOW_OFF, CC_SHADOW_BOTTOM or CC_SHADOW_RIGHT, see also cc_types.h - * 2nd parameter defines shadow width, default = defined by system - * 3rd parameter forces paint of shadow layer, default = false, Note: default shadow will paint only on first paint, use 3rd parameter=true ignores this - */ - void enableShadow(int mode = CC_SHADOW_ON, const int& shadow_width = -1, bool force_paint = false); }; //! Sub class of CComponentsButton.