Val: remove unimplemented prototype recover_val()

In the initial commit 10 years ago
(61757ac78b), the implementation was
gone already.
This commit is contained in:
Max Kellermann 2020-02-27 10:17:18 +01:00
parent 3331abb4f2
commit 837c8f759b

View file

@ -1021,12 +1021,6 @@ protected:
// the checking is done in the context of an initialization.
extern IntrusivePtr<Val> check_and_promote(IntrusivePtr<Val> 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);