Your screen shows to remove the variation from mini cart and from the checkout. And the code has been provided. It is not possible to distinguish. The first code is for mini-cart, the second is for the shopping cart and checkout. Leave or remove the code as per your needs.