From 292c4451f99255d13d6b74a799f7b23a706df95c Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:12:07 +0100 Subject: [PATCH] Truly amazing (#23380) --- code/__HELPERS/experimental.dm | 42 ---------------------------------- paradise.dme | 1 - 2 files changed, 43 deletions(-) delete mode 100644 code/__HELPERS/experimental.dm diff --git a/code/__HELPERS/experimental.dm b/code/__HELPERS/experimental.dm deleted file mode 100644 index 7409797bb0d..00000000000 --- a/code/__HELPERS/experimental.dm +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Experimental procs by ESwordTheCat! - */ - -/* - * Get index of last char occurence to string. - * - * @args - * A, string to be search - * B, char used for search - * - * @return - * >0, index of char at string - * 0, char not found - * -1, parameter B is not a char - * -2, parameter A is not a string - */ -/proc/strpos(const/A, const/B) - if(istext(A) == 0 || length(A) < 1) - return -2 - - if(istext(B) == 0 || length(B) > 1) - return -1 - - var/i = findtext(A, B) - - if(0 == i) - return 0 - - while(i) - . = i - i = findtext(A, B, i + 1) - -/proc/isInTypes(atom/Object, types) - var/prototype = Object.type - Object = null - - for(var/type in params2list(types)) - if(ispath(prototype, text2path(type))) - return 1 - - return 0 diff --git a/paradise.dme b/paradise.dme index 868eb0e33ea..74af7c0e202 100644 --- a/paradise.dme +++ b/paradise.dme @@ -129,7 +129,6 @@ #include "code\__HELPERS\colour_helpers.dm" #include "code\__HELPERS\constants.dm" #include "code\__HELPERS\debugger.dm" -#include "code\__HELPERS\experimental.dm" #include "code\__HELPERS\files.dm" #include "code\__HELPERS\filters.dm" #include "code\__HELPERS\game.dm"