summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qcache.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-12-15 15:09:09 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-12-16 14:02:28 +0100
commite832a805c1e8c76ec5f2afcb09edc12ba1d06b75 (patch)
treebcabbd9ba0a84245a356559bcf952a808d355379 /src/corelib/tools/qcache.h
parent735e2f787acf1f74c00e26730c7a477a7a59129f (diff)
QCache: remove dead code
The Node::replace overloads and the Node::create method are not used anywhere (including in QHash). Pick-to: 6.2 6.3 Change-Id: I1f1f8c847c8f1181cd31d95d01997226f94b5fc4 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools/qcache.h')
-rw-r--r--src/corelib/tools/qcache.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/corelib/tools/qcache.h b/src/corelib/tools/qcache.h
index 32d822e892..9ec99c5636 100644
--- a/src/corelib/tools/qcache.h
+++ b/src/corelib/tools/qcache.h
@@ -109,23 +109,6 @@ class QCache
{
value = Value(o, cost);
}
- static Node create(const Key &k, Value &&t) noexcept(std::is_nothrow_move_assignable_v<Key> && std::is_nothrow_move_assignable_v<T>)
- {
- return Node(k, std::move(t));
- }
- void replace(const Value &t) noexcept(std::is_nothrow_assignable_v<T, T>)
- {
- value = t;
- }
- void replace(Value &&t) noexcept(std::is_nothrow_move_assignable_v<T>)
- {
- value = std::move(t);
- }
- Value takeValue() noexcept(std::is_nothrow_move_constructible_v<T>)
- {
- return std::move(value);
- }
- bool valuesEqual(const Node *other) const { return value == other->value; }
Node(Node &&other)
: Chain(other),