From dd36f797d5ad2bf16580a9d03914714ee2e0dd0e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 24 Jun 2019 12:02:49 +0200 Subject: [PATCH] JsonObject: Let the compiler generate a copy constructor. This was only needed while HashMap was noncopyable. :^) --- AK/JsonObject.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/AK/JsonObject.h b/AK/JsonObject.h index a47d5a9c2b..cb8a71a40f 100644 --- a/AK/JsonObject.h +++ b/AK/JsonObject.h @@ -11,12 +11,6 @@ public: JsonObject() { } ~JsonObject() { } - JsonObject(const JsonObject& other) - { - for (auto& it : other.m_members) - m_members.set(it.key, it.value); - } - int size() const { return m_members.size(); } bool is_empty() const { return m_members.is_empty(); }