diff --git a/compilerplugins/clang/unusedenumconstants.readonly.results b/compilerplugins/clang/unusedenumconstants.readonly.results index 74a84edad117..8bd1747a6358 100644 --- a/compilerplugins/clang/unusedenumconstants.readonly.results +++ b/compilerplugins/clang/unusedenumconstants.readonly.results @@ -1448,10 +1448,6 @@ sw/inc/undobj.hxx:134 enum DelContentType Fly sw/inc/undobj.hxx:135 enum DelContentType Bkm -sw/source/core/inc/dbg_lay.hxx:38 - enum PROT Pos -sw/source/core/inc/dbg_lay.hxx:46 - enum PROT Snapshot sw/source/core/inc/SwXMLBlockImport.hxx:81 enum SwXMLTextBlockToken OFFICE_BODY sw/source/core/inc/SwXMLBlockImport.hxx:82 diff --git a/sw/source/core/inc/dbg_lay.hxx b/sw/source/core/inc/dbg_lay.hxx index 5c46809f88ae..e9c04d81eaa9 100644 --- a/sw/source/core/inc/dbg_lay.hxx +++ b/sw/source/core/inc/dbg_lay.hxx @@ -35,7 +35,6 @@ enum class PROT { ShrinkTest = 0x00000080, Size = 0x00000100, PrintArea = 0x00000200, - Pos = 0x00000400, AdjustN = 0x00000800, Section = 0x00001000, Cut = 0x00002000, @@ -43,10 +42,9 @@ enum class PROT { Leaf = 0x00008000, TestFormat = 0x00010000, FrmChanges = 0x00020000, - Snapshot = 0x00040000 }; namespace o3tl { - template<> struct typed_flags : is_typed_flags {}; + template<> struct typed_flags : is_typed_flags {}; } enum class DbgAction { diff --git a/sw/source/core/layout/dbg_lay.cxx b/sw/source/core/layout/dbg_lay.cxx index b3c346e81a6d..3ca7d588a161 100644 --- a/sw/source/core/layout/dbg_lay.cxx +++ b/sw/source/core/layout/dbg_lay.cxx @@ -632,8 +632,6 @@ void SwImplProtocol::Record_( const SwFrame* pFrame, PROT nFunction, DbgAction n lcl_FrameType( aOut, pFrame ); // then the frame type switch ( nFunction ) // and the function { - case PROT::Snapshot: lcl_Flags( aOut, pFrame ); - break; case PROT::MakeAll: aOut.append("SwFrame::MakeAll"); lcl_Start( aOut, aLayer, nAct ); if( nAct == DbgAction::Start ) @@ -681,7 +679,6 @@ void SwImplProtocol::Record_( const SwFrame* pFrame, PROT nFunction, DbgAction n aOut.append(static_cast(*static_cast(pParam))); } break; - case PROT::Pos: break; case PROT::PrintArea: aOut.append("PROT::PrintArea"); lcl_Start( aOut, aLayer, nAct ); break;