diff --git a/public/js/components/searchbar/searchbar.js b/public/js/components/searchbar/searchbar.js index ce08e3bfd..15d2a8c1d 100644 --- a/public/js/components/searchbar/searchbar.js +++ b/public/js/components/searchbar/searchbar.js @@ -4,7 +4,6 @@ import employee from "./employee.js"; import organisationunit from "./organisationunit.js"; import student from "./student.js"; import prestudent from "./prestudent.js"; -import uuid from "../../helpers/UUID.js"; export default { props: [ "searchoptions", "searchfunction" ], diff --git a/public/js/helpers/UUID.js b/public/js/helpers/UUID.js deleted file mode 100644 index 1c08c1237..000000000 --- a/public/js/helpers/UUID.js +++ /dev/null @@ -1,8 +0,0 @@ -const uuid41 = () => { - const b = crypto.getRandomValues(new Uint16Array(8)); - const d = [].map.call(b, a => a.toString(16).padStart(4, '0')).join(''); - const vr = (((b[5] >> 12) & 3) | 8).toString(16); - return `${d.substr(0, 8)}-${d.substr(8, 4)}-4${d.substr(13, 3)}-${vr}${d.substr(17, 3)}-${d.substr(20, 12)}`; -}; - -export default uuid41; \ No newline at end of file