include/vcl/txtattr.hxx     |   13 -------------
 vcl/source/edit/txtattr.cxx |   19 -------------------
 2 files changed, 32 deletions(-)

New commits:
commit 593bf5e35d44ecdac2a046191bb7b36d2ddcf9cd
Author:     Akshay Kumar Dubey <akshaymani...@gmail.com>
AuthorDate: Mon Mar 24 21:59:20 2025 +0530
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Mon May 26 10:27:23 2025 +0200

    tdf#97228: Remove unused TextAttribProtect
    
    Change-Id: I11d8510ac20967ee1b3d6091d241ce45cc9d9853
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183275
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

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<TextAttrib> 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<const 
TextAttribFontWeight&>(rAttr).meWeight ) );
 }
 
-TextAttribProtect::TextAttribProtect() :
-    TextAttrib( TEXTATTR_PROTECTED )
-{
-}
-
-void TextAttribProtect::SetFont( vcl::Font& ) const
-{
-}
-
-std::unique_ptr<TextAttrib> TextAttribProtect::Clone() const
-{
-    return std::unique_ptr<TextAttrib>(new TextAttribProtect());
-}
-
-bool TextAttribProtect::operator==( const TextAttrib& rAttr ) const
-{
-    return TextAttrib::operator==(rAttr );
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to