summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2023-12-05 19:57:53 +0100
committerMiklos Vajna <vmiklos@collabora.com>2023-12-06 08:19:43 +0100
commitfa38d98155a857908641380c7a1a5a34fafe934e (patch)
treecdb344ef585fb3ecc870e9edaf174b747344b2f7 /sw
parentbb3157e38bfffd23505abc35f790043392f43d2c (diff)
Remove now unused SwModelTestBase::preTest()
Which was a way to place test setup code far from the test itself, so good to get rid of it. Change-Id: I9f88ded958e7b546f0b1ecd7ce025e72a2a5e245 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160373 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/inc/swmodeltestbase.hxx8
-rw-r--r--sw/qa/unit/swmodeltestbase.cxx4
2 files changed, 0 insertions, 12 deletions
diff --git a/sw/qa/inc/swmodeltestbase.hxx b/sw/qa/inc/swmodeltestbase.hxx
index 7eb41f2eda7c..950136e66eba 100644
--- a/sw/qa/inc/swmodeltestbase.hxx
+++ b/sw/qa/inc/swmodeltestbase.hxx
@@ -140,14 +140,6 @@ protected:
CPPUNIT_FAIL( "verify method must be overridden" );
}
- /**
- * Override this function if some special filename-specific setup is needed
- */
- virtual std::unique_ptr<Resetter> preTest(const char* /*filename*/)
- {
- return nullptr;
- }
-
/// Override this function if some special file-specific setup is needed during export test: after load, but before save.
virtual void postLoad(const char* /*pFilename*/)
{
diff --git a/sw/qa/unit/swmodeltestbase.cxx b/sw/qa/unit/swmodeltestbase.cxx
index 5029421a631a..d5248bd414fb 100644
--- a/sw/qa/unit/swmodeltestbase.cxx
+++ b/sw/qa/unit/swmodeltestbase.cxx
@@ -66,7 +66,6 @@ void SwModelTestBase::executeImportTest(const char* filename, const char* pPassw
{
maTempFile.EnableKillingFile(false);
header();
- std::unique_ptr<Resetter> const pChanges(preTest(filename));
loadURL(createFileURL(OUString::createFromAscii(filename)), pPassword);
verify();
finish();
@@ -77,7 +76,6 @@ void SwModelTestBase::executeLoadVerifyReloadVerify(const char* filename, const
{
maTempFile.EnableKillingFile(false);
header();
- std::unique_ptr<Resetter> const pChanges(preTest(filename));
loadURL(createFileURL(OUString::createFromAscii(filename)), pPassword);
verify();
postLoad(filename);
@@ -91,7 +89,6 @@ void SwModelTestBase::executeLoadReloadVerify(const char* filename, const char*
{
maTempFile.EnableKillingFile(false);
header();
- std::unique_ptr<Resetter> const pChanges(preTest(filename));
loadURL(createFileURL(OUString::createFromAscii(filename)), pPassword);
postLoad(filename);
saveAndReload(mpFilter, pPassword);
@@ -104,7 +101,6 @@ void SwModelTestBase::executeImportExport(const char* filename, const char* pPas
{
maTempFile.EnableKillingFile(false);
header();
- std::unique_ptr<Resetter> const pChanges(preTest(filename));
loadAndSave(filename, pPassword);
maTempFile.EnableKillingFile(false);
verify();