Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Removed unused methods #15

Merged
merged 1 commit into from
Aug 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions src/common/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down