summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 13:07:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-24 12:38:21 +0100
commit32e3238a3734049df5397aa34e569dc15c8a8178 (patch)
tree3660a2595fcacccb459bc5f1bc8a0b1184dc14e1
parent0742d5d3ec630c5237eb2bee28d926fb90bef706 (diff)
remove unused PROT values
Change-Id: I2a0962c68e23722370ce36ce35e8cb86a3b7a7fb Reviewed-on: https://gerrit.libreoffice.org/63922 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--compilerplugins/clang/unusedenumconstants.readonly.results4
-rw-r--r--sw/source/core/inc/dbg_lay.hxx4
-rw-r--r--sw/source/core/layout/dbg_lay.cxx3
3 files changed, 1 insertions, 10 deletions
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<PROT> : is_typed_flags<PROT, 0x0007ffff> {};
+ template<> struct typed_flags<PROT> : is_typed_flags<PROT, 0x0003fbff> {};
}
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<sal_Int64>(*static_cast<long*>(pParam)));
}
break;
- case PROT::Pos: break;
case PROT::PrintArea: aOut.append("PROT::PrintArea");
lcl_Start( aOut, aLayer, nAct );
break;