some destroy cleanup (#16958)

* some destroy cleanup

* fix inits

* deconf

* wrong PR

* rm duplicate

* fix that

* forgot that
This commit is contained in:
Kashargul
2025-01-27 09:11:39 +10:00
committed by GitHub
parent e3cf039c34
commit 394b2a4789
11 changed files with 37 additions and 47 deletions
+1 -13
View File
@@ -474,21 +474,9 @@
if(!.)
return _AddComponent(args)
/**
* Removes the component from parent, ends up with a null parent
* Used as a helper proc by the component transfer proc, does not clean up the component like Destroy does
*/
/datum/component/proc/ClearFromParent()
if(!parent)
return
var/datum/old_parent = parent
PreTransfer()
_RemoveFromParent()
parent = null
SEND_SIGNAL(old_parent, COMSIG_COMPONENT_REMOVING, src)
/**
* Removes the component from parent, ends up with a null parent
* Used as a helper proc by the component transfer proc, does not clean up the component like Destroy does
*/
/datum/component/proc/RemoveComponent()
if(!parent)