From 24d06274822e64696fd53d0f9fb327ec5a56c905 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Fri, 16 May 2025 00:17:14 +0200 Subject: [PATCH] QmlDesigner: Remove unused statement in project storage Change-Id: Ib4b889ad42ff09212b46d55e5fa237ae0313909e Reviewed-by: Thomas Hartmann --- .../designercore/projectstorage/projectstorage.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorage.cpp b/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorage.cpp index 3c0e4d59fd9..1fb953c2ea4 100644 --- a/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorage.cpp +++ b/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorage.cpp @@ -781,19 +781,6 @@ struct ProjectStorage::Statements database}; mutable Sqlite::ReadStatement<1, 1> selectDefaultPropertyDeclarationIdStatement{ "SELECT defaultPropertyId FROM types WHERE typeId=?", database}; - mutable Sqlite::ReadStatement<1, 1> selectPrototypeIdsForTypeIdInOrderStatement{ - "WITH RECURSIVE " - " all_prototype_and_extension(typeId, prototypeId) AS (" - " SELECT typeId, prototypeId FROM types WHERE prototypeId IS NOT NULL" - " UNION ALL " - " SELECT typeId, extensionId FROM types WHERE extensionId IS NOT NULL)," - " prototypes(typeId, level) AS (" - " SELECT prototypeId, 0 FROM all_prototype_and_extension WHERE typeId=?" - " UNION ALL " - " SELECT prototypeId, p.level+1 FROM all_prototype_and_extension JOIN " - " prototypes AS p USING(typeId)) " - "SELECT typeId FROM prototypes ORDER BY level", - database}; Sqlite::WriteStatement<2> upsertPropertyEditorPathIdStatement{ "INSERT INTO propertyEditorPaths(typeId, pathSourceId) VALUES(?1, ?2) ON CONFLICT DO " "UPDATE SET pathSourceId=excluded.pathSourceId WHERE pathSourceId IS NOT "