```\n/// @notice Reset the given pool's TRIBE allocation to 0 and unlock the pool. Can only be called by the governor or guardian.\n/// @param \_pid The index of the pool. See `poolInfo`. \nfunction resetRewards(uint256 \_pid) public onlyGuardianOrGovernor {\n    // set the pool's allocation points to zero\n    totalAllocPoint = (totalAllocPoint - poolInfo[\_pid].allocPoint);\n    poolInfo[\_pid].allocPoint = 0;\n   \n    // unlock all staked tokens in the pool\n    poolInfo[\_pid].unlocked = true;\n\n    // erase any IRewarder mapping\n    rewarder[\_pid] = IRewarder(address(0));\n}\n```\n