chore: bump gpui-pre to 0.3.8 and clean up unused code
This commit is contained in:
@@ -8,9 +8,6 @@ pub struct Announcement {
|
||||
}
|
||||
|
||||
impl Announcement {
|
||||
/// Parse an announcement from an event, returning `None` when the `n`
|
||||
/// tag is missing or malformed so callers never mistake the author's
|
||||
/// identity key for an encryption key.
|
||||
pub fn from_event(event: &Event) -> Option<Self> {
|
||||
let public_key = event
|
||||
.tags
|
||||
@@ -22,10 +19,6 @@ impl Announcement {
|
||||
Some(Self { public_key })
|
||||
}
|
||||
|
||||
pub fn new(public_key: PublicKey) -> Self {
|
||||
Self { public_key }
|
||||
}
|
||||
|
||||
/// Returns the public key of the device that created this announcement.
|
||||
pub fn public_key(&self) -> PublicKey {
|
||||
self.public_key
|
||||
|
||||
Reference in New Issue
Block a user