From ddeca6dfef525737928560ad396e768d73d5dee5 Mon Sep 17 00:00:00 2001 From: Vasu Bhatia Date: Sun, 7 Dec 2025 18:35:13 +0000 Subject: [PATCH] Remove individual quality update methods since they are implemented in individual strategies --- python/gilded_rose.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/python/gilded_rose.py b/python/gilded_rose.py index effb7d74..dd65ba20 100755 --- a/python/gilded_rose.py +++ b/python/gilded_rose.py @@ -207,32 +207,6 @@ class GildedRose: """ self.items = items - def _increase_quality(self, item: Item, amount: int = 1) -> None: - """Increase the quality of an item, ensuring it does not exceed MAX_QUALITY. - - Parameters - ---------- - item : Item - The item whose quality is to be increased. - amount : int, optional - The amount to increase the quality by (default is 1). - - """ - item.quality = min(MAX_QUALITY, item.quality + amount) - - def _decrease_quality(self, item: Item, amount: int = 1) -> None: - """Decrease the quality of an item, ensuring it does not go below MIN_QUALITY. - - Parameters - ---------- - item : Item - The item whose quality is to be decreased. - amount : int, optional - The amount to decrease the quality by (default is 1). - - """ - item.quality = max(MIN_QUALITY, item.quality - amount) - def update_quality(self) -> None: """Update quality and sell_in for all items according to the business rules.""" for item in self.items: