Commit f14edc60 authored by Kevin Funk's avatar Kevin Funk

debuggercommon: Remove some dead code

If I understand that correctly, then e.g. `isTypeParen` has never been
used since it's inception around 2009. It's just that the compiler now
warns about it being unused.
parent d1a374f0
......@@ -28,45 +28,6 @@
namespace {
bool parenFits( QChar c1, QChar c2 ) {
if (c1 == QLatin1Char('<') && c2 == QLatin1Char('>')) return true;
if (c1 == QLatin1Char('(') && c2 == QLatin1Char(')')) return true;
if (c1 == QLatin1Char('[') && c2 == QLatin1Char(']')) return true;
if (c1 == QLatin1Char('{') && c2 == QLatin1Char('}')) return true;
return false;
}
bool isParen( QChar c1 ) {
if (c1 == QLatin1Char('<') || c1 == QLatin1Char('>')) return true;
if (c1 == QLatin1Char('(') || c1 == QLatin1Char(')')) return true;
if (c1 == QLatin1Char('[') || c1 == QLatin1Char(']')) return true;
if (c1 == QLatin1Char('{') || c1 == QLatin1Char('}')) return true;
return false;
}
bool isTypeParen( QChar c1 ) {
if (c1 == QLatin1Char('<') || c1 == QLatin1Char('>')) return true;
return false;
}
bool isTypeOpenParen( QChar c1 ) {
if (c1 == QLatin1Char('<')) return true;
return false;
}
bool isTypeCloseParen( QChar c1 ) {
if (c1 == QLatin1Char('>')) return true;
return false;
}
bool isLeftParen( QChar c1 ) {
if (c1 == QLatin1Char('<')) return true;
if (c1 == QLatin1Char('(')) return true;
if (c1 == QLatin1Char('[')) return true;
if (c1 == QLatin1Char('{')) return true;
return false;
}
enum { T_ACCESS, T_PAREN, T_BRACKET, T_IDE, T_UNKNOWN, T_TEMP };
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment