From 64ea8306b0ceb001132ac9cbc945a12afc01b8cd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 15 Mar 2017 15:50:43 +0200 Subject: drop GetId() from SfxUndoAction mostly so that the subclasses can use proper enum types for their own IDs. It turns out that nothing at the svl/sfx2 level needs an ID anyhow. Change-Id: I3c020aeafb812fa30d896216d4e3bc1a82cbfeab Reviewed-on: https://gerrit.libreoffice.org/35222 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/undo/undo.cxx | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'svl/source/undo') diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 4636021b5b75..71dd56de8621 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -70,11 +70,6 @@ OUString SfxUndoAction::GetComment() const } -sal_uInt16 SfxUndoAction::GetId() const -{ - return 0; -} - sal_Int32 SfxUndoAction::GetViewShellId() const { return -1; @@ -698,17 +693,6 @@ OUString SfxUndoManager::GetUndoActionComment( size_t nNo, bool const i_currentL } -sal_uInt16 SfxUndoManager::GetUndoActionId() const -{ - UndoManagerGuard aGuard( *m_xData ); - - assert(m_xData->pActUndoArray->nCurUndoAction > 0); - if ( m_xData->pActUndoArray->nCurUndoAction == 0 ) - return 0; - return m_xData->pActUndoArray->aUndoActions[m_xData->pActUndoArray->nCurUndoAction-1].pAction->GetId(); -} - - SfxUndoAction* SfxUndoManager::GetUndoAction( size_t nNo ) const { UndoManagerGuard aGuard( *m_xData ); -- cgit