diff --git a/src/shogun/base/init.cpp b/src/shogun/base/init.cpp index 9e43c6f4129..b6b739a7931 100644 --- a/src/shogun/base/init.cpp +++ b/src/shogun/base/init.cpp @@ -40,7 +40,6 @@ namespace shogun Parallel* sg_parallel=NULL; SGIO* sg_io=NULL; Version* sg_version=NULL; - CMath* sg_math=NULL; CRandom* sg_rand=NULL; std::unique_ptr sg_signal(nullptr); std::unique_ptr sg_linalg(nullptr); @@ -72,8 +71,6 @@ namespace shogun sg_parallel=new shogun::Parallel(); if (!sg_version) sg_version = new shogun::Version(); - if (!sg_math) - sg_math = new shogun::CMath(); if (!sg_rand) sg_rand = new shogun::CRandom(); if (!sg_linalg) @@ -90,7 +87,6 @@ namespace shogun SG_REF(sg_io); SG_REF(sg_parallel); SG_REF(sg_version); - SG_REF(sg_math); SG_REF(sg_rand); sg_print_message=print_message; @@ -124,7 +120,6 @@ namespace shogun #endif SG_UNREF(sg_rand); - SG_UNREF(sg_math); SG_UNREF(sg_version); SG_UNREF(sg_parallel); SG_UNREF(sg_io); @@ -197,19 +192,6 @@ namespace shogun return sg_version; } - void set_global_math(CMath* math) - { - SG_REF(math); - SG_UNREF(sg_math); - sg_math=math; - } - - CMath* get_global_math() - { - SG_REF(sg_math); - return sg_math; - } - void set_global_rand(CRandom* rand) { SG_REF(rand); diff --git a/src/shogun/base/init.h b/src/shogun/base/init.h index 146a00edead..d84e9b96072 100644 --- a/src/shogun/base/init.h +++ b/src/shogun/base/init.h @@ -17,7 +17,6 @@ namespace shogun { class SGIO; - class CMath; class Version; class Parallel; class CRandom; @@ -111,18 +110,6 @@ namespace shogun */ Version* get_global_version(); - /** set the global math object - * - * @param math math object to use - */ - void set_global_math(CMath* math); - - /** get the global math object - * - * @return math object - */ - CMath* get_global_math(); - /** set the global random object * * @param rand random object to use