diff --git a/include/vcl/txtattr.hxx b/include/vcl/txtattr.hxx index e32fbc0b7cde..1c3aa3570e22 100644 --- a/include/vcl/txtattr.hxx +++ b/include/vcl/txtattr.hxx @@ -33,7 +33,6 @@ namespace vcl { class Font; } #define TEXTATTR_FONTWEIGHT 3 #define TEXTATTR_USER_START 1000 //start id for user defined text attributes -#define TEXTATTR_PROTECTED 4 class VCL_DLLPUBLIC TextAttrib @@ -90,18 +89,6 @@ public: FontWeight getFontWeight() const { return meWeight; } }; -class TextAttribProtect final : public TextAttrib -{ -public: - TextAttribProtect(); - - virtual void SetFont( vcl::Font& rFont ) const override; - virtual std::unique_ptr Clone() const override; - virtual bool operator==( const TextAttrib& rAttr ) const override; - -}; - - class TextCharAttrib { private: diff --git a/vcl/source/edit/txtattr.cxx b/vcl/source/edit/txtattr.cxx index 8e979c1e3f94..213151cdb6fd 100644 --- a/vcl/source/edit/txtattr.cxx +++ b/vcl/source/edit/txtattr.cxx @@ -71,23 +71,4 @@ bool TextAttribFontWeight::operator==( const TextAttrib& rAttr ) const ( meWeight == static_cast(rAttr).meWeight ) ); } -TextAttribProtect::TextAttribProtect() : - TextAttrib( TEXTATTR_PROTECTED ) -{ -} - -void TextAttribProtect::SetFont( vcl::Font& ) const -{ -} - -std::unique_ptr TextAttribProtect::Clone() const -{ - return std::unique_ptr(new TextAttribProtect()); -} - -bool TextAttribProtect::operator==( const TextAttrib& rAttr ) const -{ - return TextAttrib::operator==(rAttr ); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */