Commit d179a596 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

C++: remove unused function



gotoslot_test.cpp:70:9: warning: unused function 'expectedContentsForFile' [-Wunused-function]
QString expectedContentsForFile(const QString &filePath)
        ^

Change-Id: Ibc9d540e241cd90365235ee75de213fcda107e32
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 8f1fc056
......@@ -67,19 +67,6 @@ public:
{}
};
QString expectedContentsForFile(const QString &filePath)
{
QFileInfo fi(filePath);
const QString referenceFileName = QLatin1String("reference_") + fi.fileName();
const QString referenceFilePath = fi.dir().absoluteFilePath(referenceFileName);
Utils::FileReader fileReader;
const bool isFetchOk = fileReader.fetch(referenceFilePath);
if (isFetchOk)
return QString::fromUtf8(fileReader.data());
return QString();
}
class DocumentContainsFunctionDefinition: protected SymbolVisitor
{
public:
......
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