mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 20:31:19 +00:00
Remove unused ActorType methods
This commit is contained in:
parent
8ea21c39b7
commit
02ce7bdc7d
4 changed files with 0 additions and 22 deletions
|
@ -80,18 +80,10 @@ impl ApubObject for UserOrCommunity {
|
|||
}
|
||||
|
||||
impl ActorType for UserOrCommunity {
|
||||
fn is_local(&self) -> bool {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn actor_id(&self) -> Url {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn name(&self) -> String {
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn public_key(&self) -> Option<String> {
|
||||
match self {
|
||||
UserOrCommunity::User(p) => p.public_key(),
|
||||
|
|
|
@ -161,15 +161,9 @@ impl ApubObject for ApubCommunity {
|
|||
}
|
||||
|
||||
impl ActorType for ApubCommunity {
|
||||
fn is_local(&self) -> bool {
|
||||
self.local
|
||||
}
|
||||
fn actor_id(&self) -> Url {
|
||||
self.actor_id.to_owned().into()
|
||||
}
|
||||
fn name(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
fn public_key(&self) -> Option<String> {
|
||||
self.public_key.to_owned()
|
||||
}
|
||||
|
|
|
@ -178,15 +178,9 @@ impl ApubObject for ApubPerson {
|
|||
}
|
||||
|
||||
impl ActorType for ApubPerson {
|
||||
fn is_local(&self) -> bool {
|
||||
self.local
|
||||
}
|
||||
fn actor_id(&self) -> Url {
|
||||
self.actor_id.to_owned().into()
|
||||
}
|
||||
fn name(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
|
||||
fn public_key(&self) -> Option<String> {
|
||||
self.public_key.to_owned()
|
||||
|
|
|
@ -63,9 +63,7 @@ pub trait ApubObject {
|
|||
/// Common methods provided by ActivityPub actors (community and person). Not all methods are
|
||||
/// implemented by all actors.
|
||||
pub trait ActorType {
|
||||
fn is_local(&self) -> bool;
|
||||
fn actor_id(&self) -> Url;
|
||||
fn name(&self) -> String;
|
||||
|
||||
// TODO: this should not be an option (needs db migration in lemmy)
|
||||
fn public_key(&self) -> Option<String>;
|
||||
|
|
Loading…
Reference in a new issue