diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-31 14:00:35 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-31 21:38:56 -0500 |
commit | af2cf56599fd23485bf570f44f65399fad681eba (patch) | |
tree | 03601d521aee98a818d3c802fb9a03bce2a75d8d | |
parent | d44bbfc5d00128d005ed896e4a4227276093e221 (diff) |
One less method that nobody uses.
-rw-r--r-- | svx/inc/svx/svdobj.hxx | 1 | ||||
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/svx/inc/svx/svdobj.hxx b/svx/inc/svx/svdobj.hxx index 20116f12057d..445ba6044313 100644 --- a/svx/inc/svx/svdobj.hxx +++ b/svx/inc/svx/svdobj.hxx @@ -254,7 +254,6 @@ public: sal_uInt16 GetUserDataCount() const; SdrObjUserData* GetUserData(sal_uInt16 nNum) const; void InsertUserData(SdrObjUserData* pData, sal_uInt16 nPos=0xFFFF); - SdrObjUserData* RemoveUserData(sal_uInt16 nNum); void DeleteUserData(sal_uInt16 nNum); }; diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 40c58738e5b2..0858a8ad3de9 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -246,14 +246,9 @@ void SdrObjUserDataList::InsertUserData(SdrObjUserData* pData, sal_uInt16 nPos) aList.Insert(pData,nPos); } -SdrObjUserData* SdrObjUserDataList::RemoveUserData(sal_uInt16 nNum) -{ - return (SdrObjUserData*)aList.Remove(nNum); -} - void SdrObjUserDataList::DeleteUserData(sal_uInt16 nNum) { - delete RemoveUserData(nNum); + delete (SdrObjUserData*)aList.Remove(nNum); } //////////////////////////////////////////////////////////////////////////////////////////////////// |