summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/URLEncoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/URLEncoder.cpp')
-rw-r--r--Userland/Libraries/LibWeb/URLEncoder.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/Userland/Libraries/LibWeb/URLEncoder.cpp b/Userland/Libraries/LibWeb/URLEncoder.cpp
deleted file mode 100644
index ed4ece6b79..0000000000
--- a/Userland/Libraries/LibWeb/URLEncoder.cpp
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2020, the SerenityOS developers.
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
-
-#include <AK/StringBuilder.h>
-#include <AK/URL.h>
-#include <LibWeb/URLEncoder.h>
-
-namespace Web {
-
-String urlencode(const Vector<URLQueryParam>& pairs, URL::PercentEncodeSet percent_encode_set)
-{
- StringBuilder builder;
- for (size_t i = 0; i < pairs.size(); ++i) {
- builder.append(URL::percent_encode(pairs[i].name, percent_encode_set));
- builder.append('=');
- builder.append(URL::percent_encode(pairs[i].value, percent_encode_set));
- if (i != pairs.size() - 1)
- builder.append('&');
- }
- return builder.to_string();
-}
-
-}