diff options
author | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-08-23 18:15:45 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> | 2016-08-25 11:55:01 +0000 |
commit | de39c3bcdd850e944bd0e9d79881a7ac708f406b (patch) | |
tree | 3ce79304d105914bfa14a38342b897b8f0a1e246 /tools | |
parent | d7a2852dd400328afeef736899094f2bbd3e8ad7 (diff) |
remove dead code relating to help output
amends mostly c027cffbe, but also pre-historic d32a03469 (2005).
Change-Id: I2a897556191cff761ea8440bc5b7e47077947d75
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/configure/configureapp.cpp | 15 | ||||
-rw-r--r-- | tools/configure/configureapp.h | 5 |
2 files changed, 0 insertions, 20 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 83807cef2b..f9782e0920 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -66,9 +66,6 @@ std::ostream &operator<<(std::ostream &s, const QString &val) { using namespace std; -// Macros to simplify options marking -#define MARK_OPTION(x,y) ( dictionary[ #x ] == #y ? "*" : " " ) - static inline void promptKeyPress() { cout << "(Press any key to continue...)"; @@ -78,18 +75,6 @@ static inline void promptKeyPress() Configure::Configure(int& argc, char** argv) { - // Default values for indentation - optionIndent = 4; - descIndent = 25; - outputWidth = 0; - // Get console buffer output width - CONSOLE_SCREEN_BUFFER_INFO info; - HANDLE hStdout = GetStdHandle(STD_OUTPUT_HANDLE); - if (GetConsoleScreenBufferInfo(hStdout, &info)) - outputWidth = info.dwSize.X - 1; - outputWidth = qMin(outputWidth, 79); // Anything wider gets unreadable - if (outputWidth < 35) // Insanely small, just use 79 - outputWidth = 79; int i; for (i = 1; i < argc; i++) diff --git a/tools/configure/configureapp.h b/tools/configure/configureapp.h index 6af83d44cd..249080b288 100644 --- a/tools/configure/configureapp.h +++ b/tools/configure/configureapp.h @@ -77,11 +77,6 @@ private: QString sourcePath, buildPath; QDir sourceDir, buildDir; - // Variables for usage output - int optionIndent; - int descIndent; - int outputWidth; - QString confStrOffsets[2]; QString confStrings[2]; int confStringOff; |