From 58c76b61344f351efc19f877824dca82ab7cfa7c Mon Sep 17 00:00:00 2001 From: vikasrohit Date: Fri, 27 Aug 2021 16:28:48 +0530 Subject: [PATCH] Removed unused methods --- src/common/helper.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/common/helper.js b/src/common/helper.js index 7c4ff3b..1158fc1 100644 --- a/src/common/helper.js +++ b/src/common/helper.js @@ -119,33 +119,6 @@ async function getAttributes (token) { } } -/** - * Get all skills - * * Unused for now. Retained for any future use - * @param {String} token - * @returns a map (name -> id) - */ -async function getSkillProviderId (token) { - const res = await axios.get(`${config.UBAHN_API_URL}/skillsProviders`, { headers: { Authorization: `Bearer ${token}` }, params: { name: config.SKILL_PROVIDER_NAME } }) - if (res.data && res.data.length > 0) { - return res.data[0].id - } -} - -/** - * Get the skillId - * * Unused for now. Retained for any future use - * @param {String} skillProviderId - * @param {String} name - * @param {String} token - */ -async function getSkillId (skillProviderId, name, token) { - const res = await axios.get(`${config.UBAHN_API_URL}/skills`, { headers: { Authorization: `Bearer ${token}` }, params: { skillProviderId, name } }) - if (res.data && res.data.length > 0) { - return res.data[0].id - } -} - /** * Returns the member location for the member handle * * Unused for now. Retained for any future use