From 3a0e00c3239bb942183c068c2008016084c20598 Mon Sep 17 00:00:00 2001 From: ModulatingForce <116608425+modulatingforce@users.noreply.github.com> Date: Sat, 23 Mar 2024 14:52:41 -0400 Subject: [PATCH] comments cleanup --- src/core/botinstance.rs | 10 ++-------- src/core/botmodules.rs | 9 --------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/core/botinstance.rs b/src/core/botinstance.rs index 1522c30..a668dac 100644 --- a/src/core/botinstance.rs +++ b/src/core/botinstance.rs @@ -43,14 +43,8 @@ pub enum ChangeResult { // pub use ChType::Channel; // //simplifying from enum to struct -pub struct Channel(String); -impl Channel -{ - pub fn construct(channel_string:String) -> Channel - { - Channel(channel_string) - } -} +pub struct Channel(pub String); + use super::botmodules::StatusType; #[derive(Clone)] diff --git a/src/core/botmodules.rs b/src/core/botmodules.rs index f1c9a67..f9d7ff0 100644 --- a/src/core/botmodules.rs +++ b/src/core/botmodules.rs @@ -40,8 +40,6 @@ use crate::core::identity::{self, Permissible,IdentityManager}; use crate::core::bot_actions; -//pub use BotModule; - use std::hash::{Hash, Hasher}; use super::identity::ChatBadge; @@ -416,13 +414,6 @@ pub async fn init(mgr: Arc) { // } pub struct BotModule(pub String); -// //botmodule simplified from enum to tuple struct -// impl BotModule{ -// pub fn construct(module_name:String) -> BotModule -// { -// BotModule(module_name) -// } -// } impl PartialEq for BotModule {