message: Removing unused 'removeRobot' and 'removeAllRobots' functions
diff: @@ -104,74 +104,6 @@ async function createRobot(sqlClient /* : MariaSQL */, harborClient /* : harborC
  return harborTokenInfo
  }
  -async function removeRobot(sqlClient /* : MariaSQL */, harborClient /* : harborClient */, lagoonProjectName /* : string */, harborProjectID /* : string */, robotName /* : string */) {
  - // Returns false on an error and true on a success
  -
  - // Check for preexisting robot account of the same name
  - var robots = []
  - try {
  - const res = await harborClient.get(`projects/${harborProjectID}/robots`);
  -
  - for (var i = 0; i < res.body.length; i++) {
  - if (res.body[i].name == `robot\$${robotName}`) {
  - robots.push(res.body[i])
  - }
  - }
  - } catch (err) {
  - logger.info(`Unable to retrieve list of current robot accounts for Harbor Project: ${lagoonProjectName}`, err)
  - }
  -
  - // Remove preexisting robot account
  - try {
  - for (var i = 0; i < robotNames.length; i++) {
  - var result = await harborClient.delete(`projects/${harborProjectID}/robots/${robots[i].id}`, {
  - body: {
  - project_id: harborProjectID,
  - robot_id: robots[i].id
  - }
  - });
  - logger.debug(`Removed harbor robot account: ${robots[i].name}`)
  - }
  - } catch (err) {
  - logger.error(`Unable to remove pre-existing robot accounts for Harbor project: ${lagoonProjectName}`, err)
  - return false
  - }
  - return true
  -}
  -
  -async function removeAllRobots(sqlClient /* : MariaSQL */, harborClient /* : harborClient */, lagoonProjectName /* : string */, harborProjectID /* : string */) {
  - // Returns false on an error and true on a success
  -
  - // Check for preexisting robot account of the same name
  - var robots = []
  - try {
  - const res = await harborClient.get(`projects/${harborProjectID}/robots`);
  -
  - for (var i = 0; i < res.body.length; i++) {
  - robots.push(res.body[i])
  - }
  - } catch (err) {
  - logger.info(`Unable to retrieve list of current robot accounts for Harbor Project: ${lagoonProjectName}`, err)
  - }
  -
  - // Remove preexisting robot account
  - try {
  - for (var i = 0; i < robotNames.length; i++) {
  - var result = await harborClient.delete(`projects/${harborProjectID}/robots/${robots[i].id}`, {
  - body: {
  - project_id: harborProjectID,
  - robot_id: robots[i].id
  - }
  - });
  - logger.debug(`Removed harbor robot account: ${robots[i].name}`)
  - }
  - } catch (err) {
  - logger.error(`Unable to remove pre-existing robot accounts for Harbor project: ${lagoonProjectName}`, err)
  - return false
  - }
  - return true
  -}
  -
  async function removeHarborEnvVars(sqlClient /* : MariaSQL */, lagoonProjectName /* : string */) {
  // Returns false on an error and true on a success
  