diff --git a/src/plugins/qmldesigner/components/contentlibrary/contentlibraryusermodel.cpp b/src/plugins/qmldesigner/components/contentlibrary/contentlibraryusermodel.cpp index 21770dafd73..4607a95e9f9 100644 --- a/src/plugins/qmldesigner/components/contentlibrary/contentlibraryusermodel.cpp +++ b/src/plugins/qmldesigner/components/contentlibrary/contentlibraryusermodel.cpp @@ -245,18 +245,6 @@ void ContentLibraryUserModel::removeTexture(ContentLibraryTexture *tex, bool ref emit dataChanged(index(catIdx), index(catIdx)); updateIsEmpty(); } - - const QString bundlePathStr = itemCat->bundlePath().toFSPathString(); - if (m_customCatsObj.contains(bundlePathStr)) { - m_customCatsObj.remove(bundlePathStr); - - m_customCatsRootObj["items"] = m_customCatsObj; - - auto userBundlePath = Utils::FilePath::fromString(Paths::bundlesPathSetting() + "/User"); - auto jsonFilePath = userBundlePath.pathAppended(Constants::CUSTOM_BUNDLES_JSON_FILENAME); - auto result = jsonFilePath.writeFileContents(QJsonDocument(m_customCatsRootObj).toJson()); - QTC_ASSERT_EXPECTED(result,); - } } void ContentLibraryUserModel::removeFromContentLib(QObject *item)