ClangFormat: Remove setPath() from VFS

setPath was not used anyway. It is also not available in older
llvm versions.

Change-Id: I16f0a8e2ffa827d92a2f1440d27391a51aefa728
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-01-09 10:26:48 +01:00
parent a04b433489
commit 2cfc981860

View File

@@ -19,8 +19,9 @@ class LlvmFileAdapter : public File
{ {
public: public:
LlvmFileAdapter(const Twine &Path) LlvmFileAdapter(const Twine &Path)
: m_path(FilePath::fromString(QString::fromStdString(Path.str()))) {
{} Q_UNUSED(Path);
}
/// Destroy the file after closing it (if open). /// Destroy the file after closing it (if open).
/// Sub-classes should generally call close() inside their destructors. We /// Sub-classes should generally call close() inside their destructors. We
/// cannot do that from the base class, since close is virtual. /// cannot do that from the base class, since close is virtual.
@@ -60,13 +61,6 @@ public:
std::error_code close() override { return {}; } std::error_code close() override { return {}; }
protected: protected:
// Set the file's underlying path.
void setPath(const Twine &Path) override
{
m_path = FilePath::fromString(QString::fromStdString(Path.str()));
}
FilePath m_path;
}; };
class LlvmFileSystemAdapter : public FileSystem class LlvmFileSystemAdapter : public FileSystem