aboutsummaryrefslogtreecommitdiff
path: root/src/modules/router
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-17 06:44:09 -0700
committerFuwn <[email protected]>2024-06-17 06:44:09 -0700
commit8609e7ed2cedf28aa655e5b3f15f130558dd8d4c (patch)
tree90c9cfcf47bc2642db292bad6348e653c037b1e4 /src/modules/router
parentfeat(blogs): remove news (diff)
downloadlocus-8609e7ed2cedf28aa655e5b3f15f130558dd8d4c.tar.xz
locus-8609e7ed2cedf28aa655e5b3f15f130558dd8d4c.zip
refactor: remove file header
Diffstat (limited to 'src/modules/router')
-rw-r--r--src/modules/router/module.rs18
-rw-r--r--src/modules/router/ticker.rs18
-rw-r--r--src/modules/router/translate.rs18
-rw-r--r--src/modules/router/translate/deepl.rs18
-rw-r--r--src/modules/router/translate/module.rs18
5 files changed, 0 insertions, 90 deletions
diff --git a/src/modules/router/module.rs b/src/modules/router/module.rs
index a9539e4..7ea18f4 100644
--- a/src/modules/router/module.rs
+++ b/src/modules/router/module.rs
@@ -1,21 +1,3 @@
-// This file is part of Locus <https://github.com/gemrest/locus>.
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 3.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use {
crate::route::{CACHE_RATE, ROUTES},
std::sync::{LazyLock, Mutex},
diff --git a/src/modules/router/ticker.rs b/src/modules/router/ticker.rs
index a5384db..38b7499 100644
--- a/src/modules/router/ticker.rs
+++ b/src/modules/router/ticker.rs
@@ -1,21 +1,3 @@
-// This file is part of Locus <https://github.com/gemrest/locus>.
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 3.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use crate::DATABASE;
pub fn module(context: &windmark::context::HookContext) {
diff --git a/src/modules/router/translate.rs b/src/modules/router/translate.rs
index 8f24a9b..01d2dc3 100644
--- a/src/modules/router/translate.rs
+++ b/src/modules/router/translate.rs
@@ -1,21 +1,3 @@
-// This file is part of Locus <https://github.com/gemrest/locus>.
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 3.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
mod deepl;
mod module;
diff --git a/src/modules/router/translate/deepl.rs b/src/modules/router/translate/deepl.rs
index 9398118..950ab89 100644
--- a/src/modules/router/translate/deepl.rs
+++ b/src/modules/router/translate/deepl.rs
@@ -1,21 +1,3 @@
-// This file is part of Locus <https://github.com/gemrest/locus>.
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 3.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
#[derive(serde::Deserialize)]
pub struct DeepL {
translations: Vec<Translation>,
diff --git a/src/modules/router/translate/module.rs b/src/modules/router/translate/module.rs
index aa46956..11169ef 100644
--- a/src/modules/router/translate/module.rs
+++ b/src/modules/router/translate/module.rs
@@ -1,21 +1,3 @@
-// This file is part of Locus <https://github.com/gemrest/locus>.
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 3.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// Copyright (C) 2022-2022 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
use super::deepl::translate;
use crate::modules::router::translate::deepl::language_code_to_language_name;