]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/root-helpers/utils.ts
Merge branch 'release/5.1.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / root-helpers / utils.ts
index 00bd92411247aedfb890ea38fac7e3bd4acca28d..af94ed6cac82f0d3039e7609a2482e663417fae1 100644 (file)
@@ -1,12 +1,3 @@
-function objectToUrlEncoded (obj: any) {
-  const str: string[] = []
-  for (const key of Object.keys(obj)) {
-    str.push(encodeURIComponent(key) + '=' + encodeURIComponent(obj[key]))
-  }
-
-  return str.join('&')
-}
-
 function copyToClipboard (text: string) {
   const el = document.createElement('textarea')
   el.value = text
@@ -27,6 +18,5 @@ function wait (ms: number) {
 
 export {
   copyToClipboard,
-  objectToUrlEncoded,
   wait
 }