From d01ca234c4f3739aa66308d7b4bdcb6c96d4dd0a Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 10 Jul 2019 17:11:22 +0200 Subject: [PATCH] Remove an unused function --- qcsrc/server/bot/default/waypoints.qc | 17 ----------------- qcsrc/server/bot/default/waypoints.qh | 1 - 2 files changed, 18 deletions(-) diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index edcfde35e2..6a9dfc9256 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -1289,23 +1289,6 @@ bool waypoint_load_links() return true; } - -void waypoint_remove_hardwiredlinks() -{ - IL_EACH(g_waypoints, waypoint_has_hardwiredlinks(it), - { - if (it.wphw00) { waypoint_removelink(it, it.wphw00); it.wphw00 = NULL; } - if (it.wphw01) { waypoint_removelink(it, it.wphw01); it.wphw01 = NULL; } - if (it.wphw02) { waypoint_removelink(it, it.wphw02); it.wphw02 = NULL; } - if (it.wphw03) { waypoint_removelink(it, it.wphw03); it.wphw03 = NULL; } - if (it.wphw04) { waypoint_removelink(it, it.wphw04); it.wphw04 = NULL; } - if (it.wphw05) { waypoint_removelink(it, it.wphw05); it.wphw05 = NULL; } - if (it.wphw06) { waypoint_removelink(it, it.wphw06); it.wphw06 = NULL; } - if (it.wphw07) { waypoint_removelink(it, it.wphw07); it.wphw07 = NULL; } - waypoint_setupmodel(it); - }); -} - void waypoint_load_hardwiredlinks() { string s; diff --git a/qcsrc/server/bot/default/waypoints.qh b/qcsrc/server/bot/default/waypoints.qh index 8af0779d62..cf4f4c182e 100644 --- a/qcsrc/server/bot/default/waypoints.qh +++ b/qcsrc/server/bot/default/waypoints.qh @@ -83,7 +83,6 @@ void botframe_showwaypointlinks(); float waypoint_loadall(); bool waypoint_load_links(); void waypoint_load_hardwiredlinks(); -void waypoint_remove_hardwiredlinks(); void waypoint_spawn_fromeditor(entity pl, bool at_crosshair, bool is_jump_wp); entity waypoint_spawn(vector m1, vector m2, float f); -- 2.39.2