mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-27 18:28:31 +00:00
style: Remove redundant, unused functions
This commit is contained in:
parent
acb74faa07
commit
d4862b8ead
1 changed files with 0 additions and 6 deletions
|
@ -38,12 +38,6 @@ impl Context<'_> {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the sender of the admin command, if available
|
|
||||||
pub(crate) fn sender(&self) -> Option<&UserId> { self.sender }
|
|
||||||
|
|
||||||
/// Check if the command has sender information
|
|
||||||
pub(crate) fn has_sender(&self) -> bool { self.sender.is_some() }
|
|
||||||
|
|
||||||
/// Get the sender as a string, or service user ID if not available
|
/// Get the sender as a string, or service user ID if not available
|
||||||
pub(crate) fn sender_or_service_user(&self) -> &UserId {
|
pub(crate) fn sender_or_service_user(&self) -> &UserId {
|
||||||
self.sender
|
self.sender
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue