diff --git a/code/modules/buildmode/effects/line.dm b/code/modules/buildmode/effects/line.dm deleted file mode 100644 index 394c0d205a5..00000000000 --- a/code/modules/buildmode/effects/line.dm +++ /dev/null @@ -1,31 +0,0 @@ -/obj/effect/buildmode_line - var/image/I - var/client/cl - -/obj/effect/buildmode_line/New(client/C, atom/atom_a, atom/atom_b, linename) - if(!C || !atom_a || !atom_b) - stack_trace("Buildmode effect created with odd inputs") - return - name = linename - abstract_move(get_turf(atom_a)) - I = image('icons/misc/mark.dmi', src, "line", 19.0) - var/x_offset = ((atom_b.x * 32) + atom_b.pixel_x) - ((atom_a.x * 32) + atom_a.pixel_x) - var/y_offset = ((atom_b.y * 32) + atom_b.pixel_y) - ((atom_a.y * 32) + atom_a.pixel_y) - - var/matrix/mat = matrix() - mat.Translate(0, 16) - mat.Scale(1, sqrt((x_offset * x_offset) + (y_offset * y_offset)) / 32) - mat.Turn(90 - ATAN2(x_offset, y_offset)) // So... You pass coords in order x,y to this version of atan2. It should be called acsc2. - mat.Translate(atom_a.pixel_x, atom_a.pixel_y) - - transform = mat - cl = C - cl.images += I - -/obj/effect/buildmode_line/Destroy() - if(I) - if(istype(cl)) - cl.images -= I - cl = null - QDEL_NULL(I) - return ..() diff --git a/code/modules/unit_tests/create_and_destroy.dm b/code/modules/unit_tests/create_and_destroy.dm index 88438f20ce2..d8c9539b6f5 100644 --- a/code/modules/unit_tests/create_and_destroy.dm +++ b/code/modules/unit_tests/create_and_destroy.dm @@ -51,8 +51,6 @@ ignore += typesof(/obj/item/food/deepfryholder) //Can't pass in a thing to glow ignore += typesof(/obj/effect/abstract/eye_lighting) - //It wants a lot more context then we have - ignore += typesof(/obj/effect/buildmode_line) //We don't have a pod ignore += typesof(/obj/effect/pod_landingzone_effect) ignore += typesof(/obj/effect/pod_landingzone) diff --git a/icons/misc/mark.dmi b/icons/misc/mark.dmi deleted file mode 100644 index bec1920bccf..00000000000 Binary files a/icons/misc/mark.dmi and /dev/null differ diff --git a/tgstation.dme b/tgstation.dme index 29f338ea1db..132932b93c2 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -2056,7 +2056,6 @@ #include "code\modules\buildmode\bm_mode.dm" #include "code\modules\buildmode\buildmode.dm" #include "code\modules\buildmode\buttons.dm" -#include "code\modules\buildmode\effects\line.dm" #include "code\modules\buildmode\submodes\advanced.dm" #include "code\modules\buildmode\submodes\area_edit.dm" #include "code\modules\buildmode\submodes\basic.dm"