X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fcore%2Ffunctions.hpp;h=6b4a4e2b973b7574da78b5b4e3e6598e5c1cd2c2;hp=0ceb35856ec93ec1c5cc6664a3644d6259e70517;hb=61c8b6e85a24b5b6b9e9bc40dbeda77726e57283;hpb=ebd820491574c758104c09ca06bf3347ed87c88f diff --git a/include/anna/core/functions.hpp b/include/anna/core/functions.hpp index 0ceb358..6b4a4e2 100644 --- a/include/anna/core/functions.hpp +++ b/include/anna/core/functions.hpp @@ -320,18 +320,6 @@ struct functions { */ static S64 hash(const std::string& str) throw() { return hash(str.c_str()); } - /** - Calcula la funcion hash exclusive de la cadena recibida como parametro. - \param str Cadena a la que aplicar la funcion hash exclusiva. - */ - static unsigned long exclusiveHash(const std::string& str) throw() { return st_stringExclusiveHash.calcule(str); } - - /** - Calcula la funcion hash exclusive de la cadena recibida como parametro. - \param str Cadena a la que aplicar la funcion hash exclusiva. - */ - static unsigned long exclusiveHash(const char* str) throw() { return st_stringExclusiveHash.calcule(std::string(str)); } - /** Devuelve la cadena que contiene el resultado de aplicar la especificacion \em format sobre el resto de los parametros. @@ -663,25 +651,6 @@ struct functions { return functions::componentByName (T::getClassName(), fromFile, fromLine); } - - /** - * Gets exclusive hash for string provided on integer range - * - * @param str String hashed - * - * @return Hash unique value - */ - static int exclusiveHashInt(const std::string& str) throw() { return st_string2intExclusiveHash.calcule(str); } - - /** - * Gets exclusive hash for string (char pointer) provided on integer range - * - * @param str String hashed - * - * @return Hash unique value - */ - static int exclusiveHashInt(const char* str) throw() { return st_string2intExclusiveHash.calcule(std::string(str)); } - /** Finds string at the end of another @@ -1144,10 +1113,6 @@ struct functions { * @param target Isup number octet string. */ static void codeIsupNumber(const isup_number_t & isupNumber, bool calledOrCalling, std::string & target) throw(RuntimeException); - -private: - static ExclusiveHash st_stringExclusiveHash; - static ExclusiveHash st_string2intExclusiveHash; }; }