Refactorization: Removed some redundant code

This commit is contained in:
PKEuS 2015-10-07 18:39:02 +02:00
parent 3a5cef8a7e
commit b7f2f826a4
4 changed files with 0 additions and 9 deletions

View File

@ -135,9 +135,6 @@ private:
/** Disable assignment operator, no implementation */
TokenList &operator=(const TokenList &);
public:
private: /// private
/** Token list */
Token *_front, *_back;

View File

@ -86,7 +86,6 @@ bool TestFixture::prepareTest(const char testname[])
} else {
std::cout << classname << "::" << testname << std::endl;
}
_lib = Library();
currentTest = classname + "::" + testname;
return true;
}

View File

@ -24,7 +24,6 @@
#include <set>
#include "errorlogger.h"
#include "redirect.h"
#include "library.h"
class options;
@ -38,7 +37,6 @@ private:
static std::set<std::string> missingLibs;
protected:
Library _lib;
std::string classname;
std::string testToRun;
bool gcc_style_errors;
@ -50,7 +48,6 @@ protected:
bool prepareTest(const char testname[]);
void assert_(const char *filename, unsigned int linenr, bool condition) const;
void todoAssert(const char *filename, unsigned int linenr, bool condition) const;
void assertEquals(const char *filename, unsigned int linenr, const std::string &expected, const std::string &actual, const std::string &msg = emptyString) const;
void assertEquals(const char *filename, unsigned int linenr, const char expected[], const std::string& actual, const std::string &msg = emptyString) const;
@ -97,6 +94,5 @@ extern std::ostringstream warnings;
#else
#define LOAD_LIB_2( LIB, NAME ) { if ((LIB).load("./testrunner", "cfg/" NAME).errorcode != Library::OK) { complainMissingLib(NAME); return; } }
#endif
#define LOAD_LIB( NAME ) { LOAD_LIB_2(_lib, NAME); }
#endif

View File

@ -5,7 +5,6 @@
<?define TranslationsDir = "..\gui" ?>
<?define CfgsDir = "..\cfg" ?>
<?define AddonsDir = "..\addons" ?>
<?define HelpDir = "..\gui\help" ?>
<?define QtDllDir = "..\bin" ?>
<?if $(var.Platform) = x64 ?>