Skip to content

Commit

Permalink
Refactorization: Removed some redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
PKEuS committed Oct 7, 2015
1 parent 3a5cef8 commit b7f2f82
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions lib/tokenlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ class CPPCHECKLIB TokenList {
/** Disable assignment operator, no implementation */
TokenList &operator=(const TokenList &);

public:

private: /// private
/** Token list */
Token *_front, *_back;

Expand Down
1 change: 0 additions & 1 deletion test/testsuite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ bool TestFixture::prepareTest(const char testname[])
} else {
std::cout << classname << "::" << testname << std::endl;
}
_lib = Library();
currentTest = classname + "::" + testname;
return true;
}
Expand Down
4 changes: 0 additions & 4 deletions test/testsuite.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <set>
#include "errorlogger.h"
#include "redirect.h"
#include "library.h"

class options;

Expand All @@ -38,7 +37,6 @@ class TestFixture : public ErrorLogger {
static std::set<std::string> missingLibs;

protected:
Library _lib;
std::string classname;
std::string testToRun;
bool gcc_style_errors;
Expand All @@ -50,7 +48,6 @@ class TestFixture : public ErrorLogger {
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;
Expand Down Expand Up @@ -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
1 change: 0 additions & 1 deletion win_installer/config.wxi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<?define TranslationsDir = "..\gui" ?>
<?define CfgsDir = "..\cfg" ?>
<?define AddonsDir = "..\addons" ?>
<?define HelpDir = "..\gui\help" ?>
<?define QtDllDir = "..\bin" ?>

<?if $(var.Platform) = x64 ?>
Expand Down

0 comments on commit b7f2f82

Please sign in to comment.