aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/rawscanresults.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-02-13 17:46:20 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2018-02-16 12:15:15 +0000
commit56dcc749218b6365acef5721157d7eb4591bd5b2 (patch)
treea03cea05418a743b0fca5b27ff487856c978f404 /src/lib/corelib/buildgraph/rawscanresults.cpp
parentbca41151f08e2b198bd6ac1da1603d6933c9166a (diff)
Remove most load() and store() methods
For all serializable types whose load() and store() methods simply forward these calls to their members, the methods are removed. Instead, the serialization is now done by the persistence facility itself, which detects such classes by the presence of a member template with a fixed name (using SFINAE). If the template is present, it is called, otherwise we fall back to calling load() and store() methods. Change-Id: I42dbbdd622e0ea0db28325acc506e41c472e0f0c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/rawscanresults.cpp')
-rw-r--r--src/lib/corelib/buildgraph/rawscanresults.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/corelib/buildgraph/rawscanresults.cpp b/src/lib/corelib/buildgraph/rawscanresults.cpp
index f01ff4b0a..a519f685b 100644
--- a/src/lib/corelib/buildgraph/rawscanresults.cpp
+++ b/src/lib/corelib/buildgraph/rawscanresults.cpp
@@ -42,33 +42,11 @@
#include "filedependency.h"
#include "depscanner.h"
-#include <language/propertymapinternal.h>
-
#include <utility>
namespace qbs {
namespace Internal {
-void RawScanResult::load(PersistentPool &pool)
-{
- serializationOp<PersistentPool::Load>(pool);
-}
-
-void RawScanResult::store(PersistentPool &pool)
-{
- serializationOp<PersistentPool::Store>(pool);
-}
-
-void RawScanResults::ScanData::load(PersistentPool &pool)
-{
- serializationOp<PersistentPool::Load>(pool);
-}
-
-void RawScanResults::ScanData::store(PersistentPool &pool)
-{
- serializationOp<PersistentPool::Store>(pool);
-}
-
RawScanResults::ScanData &RawScanResults::findScanData(
const FileResourceBase *file,
const DependencyScanner *scanner,
@@ -90,15 +68,5 @@ RawScanResults::ScanData &RawScanResults::findScanData(
return scanDataForFile.back();
}
-void RawScanResults::load(PersistentPool &pool)
-{
- serializationOp<PersistentPool::Load>(pool);
-}
-
-void RawScanResults::store(PersistentPool &pool)
-{
- serializationOp<PersistentPool::Store>(pool);
-}
-
} // namespace Internal
} // namespace qbs