Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
unconditionally use refcounting for SGVector/Matrix
  • Loading branch information
Soeren Sonnenburg committed May 15, 2012
1 parent c54f3e6 commit c47b63e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/shogun/lib/SGReferencedData.h
Expand Up @@ -55,7 +55,6 @@ class SGReferencedData
{
}

#ifdef USE_REFERENCE_COUNTING
/** display reference counter
*
* @return reference count
Expand All @@ -70,15 +69,13 @@ class SGReferencedData
#endif
return *m_refcount;
}
#endif //USE_REFERENCE_COUNTING

protected:
void copy_refcount(const SGReferencedData &orig)
{
m_refcount=orig.m_refcount;
}

#ifdef USE_REFERENCE_COUNTING
/** increase reference counter
*
* @return reference count
Expand Down Expand Up @@ -132,7 +129,6 @@ class SGReferencedData
return c;
}
}
#endif //USE_REFERENCE_COUNTING

/** needs to be overridden to copy data */
virtual void copy_data(const SGReferencedData &orig)=0;
Expand Down

0 comments on commit c47b63e

Please sign in to comment.