Removes unreachable code (#48143)

About The Pull Request

As detected by SpaceManiac/SpacemanDMM#123
This commit is contained in:
spookydonut
2019-12-10 20:52:13 +13:00
committed by oranges
parent 6df75543ad
commit 175439f63a
35 changed files with 10 additions and 57 deletions
-1
View File
@@ -24,7 +24,6 @@ GLOBAL_PROTECT(protected_ranks)
if(!name)
qdel(src)
CRASH("Admin rank created without name.")
return
if(init_rights)
rights = init_rights
include_rights = rights
-2
View File
@@ -40,11 +40,9 @@ GLOBAL_PROTECT(href_token)
if(!ckey)
QDEL_IN(src, 0)
CRASH("Admin datum created without a ckey")
return
if(!istype(R))
QDEL_IN(src, 0)
CRASH("Admin datum created without a rank")
return
target = ckey
name = "[ckey]'s admin datum ([R])"
rank = R
+1 -1
View File
@@ -23,8 +23,8 @@
/datum/borgpanel/New(to_user, mob/living/silicon/robot/to_borg)
if(!istype(to_borg))
CRASH("Borg panel is only available for borgs")
qdel(src)
CRASH("Borg panel is only available for borgs")
user = CLIENT_FROM_VAR(to_user)