diff --git a/addons/source-python/packages/source-python/engines/precache.py b/addons/source-python/packages/source-python/engines/precache.py index ce42bbdd4..8f7c634e3 100644 --- a/addons/source-python/packages/source-python/engines/precache.py +++ b/addons/source-python/packages/source-python/engines/precache.py @@ -113,13 +113,7 @@ def _server_spawn(self, game_event): self._precache() def _unload_instance(self): - """Remove from the downloads list and unregister server_spawn.""" - # Remove the path from the downloads list - try: - self._downloads._unload_instance() - except AttributeError: - pass - + """Unregister server_spawn.""" # Unregister the server_spawn event event_manager.unregister_for_event('server_spawn', self._server_spawn) diff --git a/addons/source-python/packages/source-python/engines/sound.py b/addons/source-python/packages/source-python/engines/sound.py index 00a955183..12dac3d3f 100644 --- a/addons/source-python/packages/source-python/engines/sound.py +++ b/addons/source-python/packages/source-python/engines/sound.py @@ -21,8 +21,6 @@ from mutagen import oggvorbis # Source.Python Imports -# Core -from core import WeakAutoUnload # Engines from engines import engines_logger # Entities @@ -100,7 +98,7 @@ class Attenuation(float, Enum): # ============================================================================= # >> CLASSES # ============================================================================= -class _BaseSound(WeakAutoUnload): +class _BaseSound: """Base class for sound classes.""" # Set the base _downloads attribute to know whether @@ -285,11 +283,6 @@ def duration(self): self._duration = value return value - def _unload_instance(self): - """Remove the sample from the downloads list.""" - if self._downloads is not None: - self._downloads._unload_instance() - class Sound(_BaseSound): """Class used to interact with precached sounds.