From 837c8f759bd9c2bb74c227e3473f3da7867f76b8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 Feb 2020 10:17:18 +0100 Subject: [PATCH] Val: remove unimplemented prototype recover_val() In the initial commit 10 years ago (61757ac78bbff8364c24e9aabdc612a35ae76911), the implementation was gone already. --- src/Val.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Val.h b/src/Val.h index 9e4289a546..1722a3a01a 100644 --- a/src/Val.h +++ b/src/Val.h @@ -1021,12 +1021,6 @@ protected: // the checking is done in the context of an initialization. extern IntrusivePtr check_and_promote(IntrusivePtr v, const BroType* t, int is_init, const Location* expr_location = nullptr); -// Given a pointer to where a Val's core (i.e., its BRO value) resides, -// returns a corresponding newly-created or Ref()'d Val. ptr must already -// be properly aligned. Returns the size of the core in bytes in 'n'. -// If t corresponds to a variable-length type, n must give the size on entry. -Val* recover_val(void* ptr, BroType* t, int& n); - extern int same_val(const Val* v1, const Val* v2); extern int same_atomic_val(const Val* v1, const Val* v2); extern bool is_atomic_val(const Val* v);