File tree 2 files changed +2
-15
lines changed
addons/source-python/packages/source-python/engines
2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,7 @@ def _server_spawn(self, game_event):
113
113
self ._precache ()
114
114
115
115
def _unload_instance (self ):
116
- """Remove from the downloads list and unregister server_spawn."""
117
- # Remove the path from the downloads list
118
- try :
119
- self ._downloads ._unload_instance ()
120
- except AttributeError :
121
- pass
122
-
116
+ """Unregister server_spawn."""
123
117
# Unregister the server_spawn event
124
118
event_manager .unregister_for_event ('server_spawn' , self ._server_spawn )
125
119
Original file line number Diff line number Diff line change 21
21
from mutagen import oggvorbis
22
22
23
23
# Source.Python Imports
24
- # Core
25
- from core import WeakAutoUnload
26
24
# Engines
27
25
from engines import engines_logger
28
26
# Entities
@@ -100,7 +98,7 @@ class Attenuation(float, Enum):
100
98
# =============================================================================
101
99
# >> CLASSES
102
100
# =============================================================================
103
- class _BaseSound ( WeakAutoUnload ) :
101
+ class _BaseSound :
104
102
"""Base class for sound classes."""
105
103
106
104
# Set the base _downloads attribute to know whether
@@ -285,11 +283,6 @@ def duration(self):
285
283
self ._duration = value
286
284
return value
287
285
288
- def _unload_instance (self ):
289
- """Remove the sample from the downloads list."""
290
- if self ._downloads is not None :
291
- self ._downloads ._unload_instance ()
292
-
293
286
294
287
class Sound (_BaseSound ):
295
288
"""Class used to interact with precached sounds.
You can’t perform that action at this time.
0 commit comments