summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-03 10:39:28 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-09 08:18:24 +0000
commita0a919d2b541c415ad9b81d2ee91895bf106e9bb (patch)
tree63d5c644ee8a8880d26ef6a77afb19f4e2151bdb /tools
parent22a5357484f9a31a99146b738a8716a24bf59b3a (diff)
remove SvRefBase::QueryDelete
Move it's functionality into the only place that needs it, in the dbase driver. Removes an extra virtual call from a widely used class. The dbase driver seems to be using to perform some kind of whacky object recycling, so it's not like we want this functionality to be used somewhere else. Change-Id: I41018f71e0b0a79fdd3d527536f0ac95c788e614 Reviewed-on: https://gerrit.libreoffice.org/11786 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/ref/ref.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/source/ref/ref.cxx b/tools/source/ref/ref.cxx
index 3a6aa59f1743..8be92d6547e8 100644
--- a/tools/source/ref/ref.cxx
+++ b/tools/source/ref/ref.cxx
@@ -23,14 +23,4 @@ SvRefBase::~SvRefBase()
{
}
-void SvRefBase::QueryDelete()
-{
- bNoDelete = 0;
- // I'm not sure about the original purpose of this line, but right now
- // it serves the purpose that anything that attempts to do an AddRef()
- // after an object is deleted will trip an assert.
- nRefCount = 1 << 30;
- delete this;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */