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>
bb10
parent
d7a2852dd4
commit
de39c3bcdd
|
|
@ -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++)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue