Unused function parameter error. What am i doing wrong?

getting a warning and contract deployment fails. it point to this piece of hook function saying the address from, address to and unit256 amount parameters are unused. what am i doing wrong here?

function _beforeTokenTransfer(address from, address to, uint256 amount)

      internal virtual {

    require(!paused(), "ERC20Pausable: token transfer while paused");

}

What Solidity version is this? This is not an error in the latest version, I don't remember if it was an error in previous versoins. Regardless, the error is extremely clear... The parameters are unused. You can remove the names.

version 0.8.0. removing the names flags all the instances of the contract where _beforeTokenTransfer was used