From bb0d2d46f292801778e155fd1b2c83251d9a0461 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Mon, 3 Jan 2022 14:58:05 -0800 Subject: [PATCH] Remove unused front end function --- frontend/src/components/getCookieToken.js | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 frontend/src/components/getCookieToken.js diff --git a/frontend/src/components/getCookieToken.js b/frontend/src/components/getCookieToken.js deleted file mode 100644 index 87568ccb..00000000 --- a/frontend/src/components/getCookieToken.js +++ /dev/null @@ -1,15 +0,0 @@ -function getCookie(name) { - let cookieValue = null; - if (document.cookie && document.cookie !== '') { - const cookies = document.cookie.split(';'); - for (let i = 0; i < cookies.length; i++) { - const cookie = cookies[i].trim(); - // Does this cookie string begin with the name we want? - if (cookie.substring(0, name.length + 1) === (name + '=')) { - cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); - break; - } - } - } - return cookieValue; -} \ No newline at end of file