Skip to content

Commit

Permalink
Removed vunref
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed May 8, 2012
1 parent 9d6bd98 commit 3abc1ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/shogun/features/SimpleFeatures.cpp
Expand Up @@ -182,7 +182,7 @@ template<class ST> void CSimpleFeatures<ST>::free_feature_vector(ST* feat_vec, i
template<class ST> void CSimpleFeatures<ST>::free_feature_vector(SGVector<ST> vec, int32_t num)
{
free_feature_vector(vec.vector, num, false);
SG_VUNREF(vec);
vec.unref();
}

template<class ST> void CSimpleFeatures<ST>::vector_subset(int32_t* idx, int32_t idx_len)
Expand Down
8 changes: 0 additions & 8 deletions src/shogun/lib/DataType.h
Expand Up @@ -22,14 +22,6 @@
namespace shogun
{

#ifdef USE_REFERENCE_COUNTING
#define SG_VREF(x) { x.ref(); }
#define SG_VUNREF(x) { x.unref(); }
#else
#define SG_VREF(x)
#define SG_VUNREF(x)
#endif

//class CMath;
template<class T> class CCache;

Expand Down

0 comments on commit 3abc1ea

Please sign in to comment.