```\nfunction \_removeFromQueue(uint256 \_countToRemove) internal {\n  for (uint256 i = 0; i < \_countToRemove; i++) {\n    delete withdrawalsInfo[withdrawalQueue[i]];\n  }   \n\n  if (\_countToRemove == withdrawalQueue.length) {\n    delete withdrawalQueue;\n  } else {\n    uint256 \_remainingArrLength = withdrawalQueue.length.sub(\_countToRemove);\n    address[] memory \_remainingArr = new address[](\_remainingArrLength);\n\n    for (uint256 i = 0; i < \_remainingArrLength; i++) {\n      \_remainingArr[i] = withdrawalQueue[i.add(\_countToRemove)];\n    }\n\n    withdrawalQueue = \_remainingArr;\n  }\n}\n```\n