remove old code

This commit is contained in:
dgtlmoon
2026-02-07 02:20:51 +01:00
parent 8018742c67
commit dc157cccd5
2 changed files with 0 additions and 25 deletions
-15
View File
@@ -81,18 +81,3 @@ class DataStore(ABC):
"""
pass
@abstractmethod
def force_save_all(self):
"""
Force immediate synchronous save of all data to storage.
This is the abstract method for forcing a complete save.
Different backends implement this differently:
- File backend: No-op (watches save immediately via commit())
- Redis backend: SAVE command or pipeline flush
- SQL backend: COMMIT transaction
Note: With immediate persistence, this is mostly a no-op for file backend.
Used for backward compatibility.
"""
pass
@@ -350,16 +350,6 @@ class FileSavingDataStore(DataStore):
"""
raise NotImplementedError("Subclass must implement _save_settings")
def force_save_all(self):
"""
Deprecated: Watches now save immediately via commit().
Kept as no-op for backward compatibility. In the old system,
this would force all watches to save. With immediate persistence,
all changes are already saved.
"""
logger.info("force_save_all() called - no-op (immediate persistence enabled)")
pass
def _load_watches(self):
"""