remove debugging code

Change-Id: Ibb6f3a1c711959cb4f32541dba96f005e51c9040
This commit is contained in:
Noel Grandin
2019-02-11 11:36:01 +02:00
parent 941df80853
commit c04eb27aff

View File

@@ -25,11 +25,6 @@ TODO else should line up with if
namespace namespace
{ {
static bool startswith(const std::string& rStr, const char* pSubStr)
{
return rStr.compare(0, strlen(pSubStr), pSubStr) == 0;
}
class Indentation : public loplugin::FilteringPlugin<Indentation> class Indentation : public loplugin::FilteringPlugin<Indentation>
{ {
public: public:
@@ -55,7 +50,7 @@ public:
if (fn == SRCDIR "/binaryurp/source/bridge.cxx") if (fn == SRCDIR "/binaryurp/source/bridge.cxx")
return; return;
// the QEMIT macros // the QEMIT macros
if (startswith(fn, SRCDIR "/vcl/qt5/")) if (loplugin::hasPathnamePrefix(fn, SRCDIR "/vcl/qt5/"))
return; return;
TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); TraverseDecl(compiler.getASTContext().getTranslationUnitDecl());
} }
@@ -169,7 +164,6 @@ bool Indentation::VisitCompoundStmt(CompoundStmt const* compoundStmt)
compat::getBeginLoc(firstStmt)); compat::getBeginLoc(firstStmt));
//getParentStmt(compoundStmt)->dump(); //getParentStmt(compoundStmt)->dump();
//stmt->dump(); //stmt->dump();
compoundStmt->dump();
} }
} }
return true; return true;