aboutsummaryrefslogtreecommitdiff
path: root/src/utilities.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utilities.rs')
-rw-r--r--src/utilities.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/utilities.rs b/src/utilities.rs
index 1eb4831..8b4af15 100644
--- a/src/utilities.rs
+++ b/src/utilities.rs
@@ -1,20 +1,3 @@
-// This file is part of Windmark <https://github.com/gemrest/windmark>.
-//
-// 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-2023 Fuwn <[email protected]>
-// SPDX-License-Identifier: GPL-3.0-only
-
//! Utilities to make cumbersome tasks simpler
use std::collections::HashMap;
@@ -30,13 +13,3 @@ pub fn queries_from_url(url: &url::Url) -> HashMap<String, String> {
queries
}
-
-#[must_use]
-pub fn params_to_hashmap(
- params: &matchit::Params<'_, '_>,
-) -> HashMap<String, String> {
- params
- .iter()
- .map(|(k, v)| (k.to_string(), v.to_string()))
- .collect()
-}