QmlDesigner: Remove ContentLibraryWidget::findTextureBundlePath()

Unused method.

Change-Id: I021c9e3c0180245a826f375f14dd94350a209cfd
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2024-05-07 17:47:31 +03:00
parent 09e012cbb7
commit 20da89dd07
2 changed files with 0 additions and 23 deletions

View File

@@ -788,28 +788,6 @@ void ContentLibraryWidget::setIsDragging(bool val)
}
}
QString ContentLibraryWidget::findTextureBundlePath()
{
QDir texBundleDir;
if (!qEnvironmentVariable("TEXTURE_BUNDLE_PATH").isEmpty())
texBundleDir.setPath(qEnvironmentVariable("TEXTURE_BUNDLE_PATH"));
else if (Utils::HostOsInfo::isMacHost())
texBundleDir.setPath(QCoreApplication::applicationDirPath() + "/../Resources/texture_bundle");
// search for matBundleDir from exec dir and up
if (texBundleDir.dirName() == ".") {
texBundleDir.setPath(QCoreApplication::applicationDirPath());
while (!texBundleDir.cd("texture_bundle") && texBundleDir.cdUp())
; // do nothing
if (texBundleDir.dirName() != "texture_bundle") // bundlePathDir not found
return {};
}
return texBundleDir.path();
}
void ContentLibraryWidget::startDragItem(QmlDesigner::ContentLibraryItem *item, const QPointF &mousePos)
{
m_itemToDrag = item;

View File

@@ -113,7 +113,6 @@ private:
void reloadQmlSource();
void updateSearch();
void setIsDragging(bool val);
QString findTextureBundlePath();
void loadTextureBundles();
QVariantMap readTextureBundleJson();
bool fetchTextureBundleJson(const QDir &bundleDir);