From c82623a6cc918fb7657621250baf62726e94c4ea Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 25 Mar 2024 18:35:36 +0100 Subject: [PATCH] Remove value clearing since it no longer has an effect --- src/libexpr/value.hh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh index eb71765c5ef..21eb71d5cb1 100644 --- a/src/libexpr/value.hh +++ b/src/libexpr/value.hh @@ -290,13 +290,7 @@ public: inline void finishValue(InternalType newType, Payload newPayload) { - /* After overwriting thunk/app values, be sure to clear - pointers in the Value to ensure that the target isn't kept - alive unnecessarily. */ - payload.app.left = payload.app.right = 0; - payload = newPayload; - internalType = newType; }