Skip to content

Commit

Permalink
refactor: remove outdated procs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimach committed Dec 6, 2023
1 parent 8485395 commit 5e18827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 74 deletions.
74 changes: 1 addition & 73 deletions code/game/jobs/access.dm
Original file line number Diff line number Diff line change
Expand Up @@ -458,50 +458,7 @@
/proc/get_all_special_jobs()
return list("Special Reaction Team Member", "HONKsquad", "Clown Security")

//gets the actual job rank (ignoring alt titles)
//this is used solely for sechuds
/obj/proc/GetJobRealName()
if(!istype(src, /obj/item/pda) && !istype(src,/obj/item/card/id))
return

var/rank
var/assignment
if(istype(src, /obj/item/pda))
if(src:id)
rank = src:id:rank
assignment = src:id:assignment
else if(istype(src, /obj/item/card/id))
rank = src:rank
assignment = src:assignment

if( rank in GLOB.joblist )
return rank

if( assignment in GLOB.joblist )
return assignment

return "Unknown"

//gets the alt title, failing that the actual job rank
//this is unused
// THEN WHY IS IT STILL HERE?? -AA07, 2020-07-31
/obj/proc/sdsdsd() //GetJobDisplayName
if(!istype(src, /obj/item/pda) && !istype(src,/obj/item/card/id))
return

var/assignment
if(istype(src, /obj/item/pda))
if(src:id)
assignment = src:id:assignment
else if(istype(src, /obj/item/card/id))
assignment = src:assignment

if(assignment)
return assignment

return "Unknown"

/proc/GetIdCard(var/mob/living/carbon/human/H)
/proc/GetIdCard(mob/living/carbon/human/H)
if(H.wear_id)
var/id = H.wear_id.GetID()
if(id)
Expand All @@ -510,35 +467,6 @@
var/obj/item/I = H.get_active_hand()
return I.GetID()

/proc/FindNameFromID(var/mob/living/carbon/human/H)
ASSERT(istype(H))
var/obj/item/card/id/C = H.get_active_hand()
if( istype(C) || istype(C, /obj/item/pda) )
var/obj/item/card/id/ID = C

if( istype(C, /obj/item/pda) )
var/obj/item/pda/pda = C
ID = pda.id
if(!istype(ID))
ID = null

if(ID)
return ID.registered_name

C = H.wear_id

if( istype(C) || istype(C, /obj/item/pda) )
var/obj/item/card/id/ID = C

if( istype(C, /obj/item/pda) )
var/obj/item/pda/pda = C
ID = pda.id
if(!istype(ID))
ID = null

if(ID)
return ID.registered_name

/proc/get_all_job_icons() //For all existing HUD icons
return GLOB.joblist + list("Prisoner")

Expand Down
2 changes: 1 addition & 1 deletion paradise.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1143,12 +1143,12 @@
#include "code\game\objects\items\weapons\dice.dm"
#include "code\game\objects\items\weapons\disks.dm"
#include "code\game\objects\items\weapons\dna_injector.dm"
#include "code\game\objects\items\weapons\dna_upgrader.dm"
#include "code\game\objects\items\weapons\dnascrambler.dm"
#include "code\game\objects\items\weapons\explosives.dm"
#include "code\game\objects\items\weapons\extinguisher.dm"
#include "code\game\objects\items\weapons\flamethrower.dm"
#include "code\game\objects\items\weapons\garrote.dm"
#include "code\game\objects\items\weapons\dna_upgrader.dm"
#include "code\game\objects\items\weapons\gift_wrappaper.dm"
#include "code\game\objects\items\weapons\handcuffs.dm"
#include "code\game\objects\items\weapons\highlander_swords.dm"
Expand Down

0 comments on commit 5e18827

Please sign in to comment.