```\nfunction \_decrementGaugeWeight(\n    address user,\n    address gauge,\n    uint112 weight,\n    uint32 cycle\n) internal {\n    uint112 oldWeight = getUserGaugeWeight[user][gauge];\n\n    getUserGaugeWeight[user][gauge] = oldWeight - weight;\n    if (oldWeight == weight) {\n        // If removing all weight, remove gauge from user list.\n        assert(\_userGauges[user].remove(gauge));\n    }\n```\n