diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-27 14:11:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-28 08:25:18 +0000 |
commit | 7097037d5a20d2cad5a5e4b10f8f9d5aaf37589f (patch) | |
tree | f71ef6bde8c695261649b04ad8bceaa0cc08a897 /sfx2/source/control/msg.cxx | |
parent | 71403558cbffb6c1ce1c4993a177bf3364941e22 (diff) |
remove enum slot code from sfx2
since we only used it for the pseudo-slot stuff, which is now gone
Change-Id: I72146090e7741d5b71d581fa0b5c6d43c154445a
Reviewed-on: https://gerrit.libreoffice.org/35759
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/control/msg.cxx')
-rw-r--r-- | sfx2/source/control/msg.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sfx2/source/control/msg.cxx b/sfx2/source/control/msg.cxx index 947a5276fdfb..07bf409b8c61 100644 --- a/sfx2/source/control/msg.cxx +++ b/sfx2/source/control/msg.cxx @@ -29,13 +29,8 @@ SfxSlotKind SfxSlot::GetKind() const return SfxSlotKind::Standard; if ( nMasterSlotId && fnExec==nullptr && fnState==nullptr ) { - if ( *pType->pType == typeid(SfxBoolItem) ) - return SfxSlotKind::Enum; - else - { - OSL_FAIL( "invalid slot kind detected" ); - return SfxSlotKind::Enum; - } + assert(false); + return SfxSlotKind::Standard; } else return SfxSlotKind::Attribute; |