Skip to content

Commit

Permalink
Drop unused global math
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Jun 7, 2018
1 parent 22876b0 commit 2f2db5a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
18 changes: 0 additions & 18 deletions src/shogun/base/init.cpp
Expand Up @@ -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<CSignal> sg_signal(nullptr);
std::unique_ptr<SGLinalg> sg_linalg(nullptr);
Expand Down Expand Up @@ -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)
Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
13 changes: 0 additions & 13 deletions src/shogun/base/init.h
Expand Up @@ -17,7 +17,6 @@
namespace shogun
{
class SGIO;
class CMath;
class Version;
class Parallel;
class CRandom;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2f2db5a

Please sign in to comment.