diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-30 08:45:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-30 11:56:27 +0100 |
commit | cabf739612a0e979ebcf76f40a24e66a354b10a5 (patch) | |
tree | 00cfb37781dca770e315a59b4ac15d9cfd354935 | |
parent | a77c2083a4e4525062a4c005cb6491c4e3278225 (diff) |
remove unused EditStatusFlags::CRSRLEFTPARA
Change-Id: I385069328ef862f1928d436260db2f2bc13c70d6
Reviewed-on: https://gerrit.libreoffice.org/64318
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/editeng/editstat.hxx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/include/editeng/editstat.hxx b/include/editeng/editstat.hxx index f6894923c2e5..5c8c9873b08a 100644 --- a/include/editeng/editstat.hxx +++ b/include/editeng/editstat.hxx @@ -80,20 +80,15 @@ enum class EditStatusFlags VSCROLL = 0x0002, CURSOROUT = 0x0004, CRSRMOVEFAIL = 0x0008, - CRSRLEFTPARA = 0x0010, - TEXTWIDTHCHANGED = 0x0020, - TextHeightChanged = 0x0040, - WRONGWORDCHANGED = 0x0080 + TEXTWIDTHCHANGED = 0x0010, + TextHeightChanged = 0x0020, + WRONGWORDCHANGED = 0x0040 }; namespace o3tl { - template<> struct typed_flags<EditStatusFlags> : is_typed_flags<EditStatusFlags, 0xff> {}; + template<> struct typed_flags<EditStatusFlags> : is_typed_flags<EditStatusFlags, 0x7f> {}; } -/* - EditStatusFlags::CRSRLEFTPARA at the time cursor movement and the enter. -*/ - inline void SetFlags( EVControlBits& rBits, EVControlBits nMask, bool bOn ) { if ( bOn ) @@ -107,10 +102,9 @@ class EditStatus protected: EditStatusFlags nStatusBits; EEControlBits nControlBits; - sal_Int32 nPrevPara; // for EditStatusFlags::CRSRLEFTPARA public: - EditStatus() { nStatusBits = EditStatusFlags::NONE; nControlBits = EEControlBits::NONE; nPrevPara = -1; } + EditStatus() { nStatusBits = EditStatusFlags::NONE; nControlBits = EEControlBits::NONE; } void Clear() { nStatusBits = EditStatusFlags::NONE; } @@ -118,8 +112,6 @@ public: EditStatusFlags& GetStatusWord() { return nStatusBits; } EEControlBits& GetControlWord() { return nControlBits; } - - sal_Int32& GetPrevParagraph() { return nPrevPara; } }; enum class SpellCallbackCommand |