Skip to content

Commit

Permalink
Remove unnecessary call from tests
Browse files Browse the repository at this point in the history
Now that the WindowTitleUpdater is fixed we don't need to create an
instance in the tests, either.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
  • Loading branch information
dirkhh committed Nov 7, 2015
1 parent 878c05a commit 787b12c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/testgitstorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "file.h"
#include "git2.h"
#include "prefs-macros.h"
#include "windowtitleupdate.h"
#include "subsurfacestartup.h"
#include <QDir>
#include <QTextStream>
Expand Down Expand Up @@ -56,7 +55,6 @@ void TestGitStorage::testSetup()
QString localCacheDir(get_local_dir("https://cloud.subsurface-divelog.org/git/ssrftest@hohndel.org", "ssrftest@hohndel.org"));
QDir localCacheDirectory(localCacheDir);
QCOMPARE(localCacheDirectory.removeRecursively(), true);
WindowTitleUpdate *wtu = new WindowTitleUpdate();
}

void TestGitStorage::testGitStorageLocal()
Expand Down
2 changes: 0 additions & 2 deletions tests/testrenumber.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "windowtitleupdate.h"
#include "testrenumber.h"
#include "dive.h"
#include "file.h"
Expand All @@ -7,7 +6,6 @@

void TestRenumber::setup()
{
WindowTitleUpdate *wtu = new WindowTitleUpdate();
QCOMPARE(parse_file(SUBSURFACE_SOURCE "/dives/test47.xml"), 0);
process_dives(false, false);
dive_table.preexisting = dive_table.nr;
Expand Down

0 comments on commit 787b12c

Please sign in to comment.