From ca4822f5e9219f92e19638c9916a9b5b27532bea Mon Sep 17 00:00:00 2001 From: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sat, 13 Jul 2024 22:22:07 +0200 Subject: [PATCH] lang: Remove `EventData` trait (#3083) --- CHANGELOG.md | 1 + lang/src/lib.rs | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fc408df2e..b27595ff39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ The minor version will be incremented upon a breaking change and the patch versi - syn: Remove `bpf` target support in `hash` feature ([#3078](https://github.com/coral-xyz/anchor/pull/3078)). - client: Add `tokio` support to `RequestBuilder` with `async` feature ([#3057](https://github.com/coral-xyz/anchor/pull/3057])). +- lang: Remove `EventData` trait ([#3083](https://github.com/coral-xyz/anchor/pull/3083])). ## [0.30.1] - 2024-06-20 diff --git a/lang/src/lib.rs b/lang/src/lib.rs index 8aa65e49bd..2cff0a2e72 100644 --- a/lang/src/lib.rs +++ b/lang/src/lib.rs @@ -300,14 +300,6 @@ pub trait Event: AnchorSerialize + AnchorDeserialize + Discriminator { fn data(&self) -> Vec; } -// The serialized event data to be emitted via a Solana log. -// TODO: remove this on the next major version upgrade. -#[doc(hidden)] -#[deprecated(since = "0.4.2", note = "Please use Event instead")] -pub trait EventData: AnchorSerialize + Discriminator { - fn data(&self) -> Vec; -} - /// 8 byte unique identifier for a type. pub trait Discriminator { const DISCRIMINATOR: [u8; 8];