From 59be57a539f32797db73b9b5c1804d31cc061d23 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Fri, 22 Apr 2011 13:41:10 -0400 Subject: fix dup code --- utils/fast_sparse_vector.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'utils') diff --git a/utils/fast_sparse_vector.h b/utils/fast_sparse_vector.h index b8b3df1f..00d3b74f 100644 --- a/utils/fast_sparse_vector.h +++ b/utils/fast_sparse_vector.h @@ -368,26 +368,4 @@ namespace performance_checks { BOOST_STATIC_ASSERT(sizeof(FastSparseVector) == L2_CACHE_LINE); }; -#include "fdict.h" - -template -inline void print(O &o,const FastSparseVector& v, const char* kvsep="=",const char* pairsep=" ",const char* pre="",const char* post="") { - o << pre; - bool first=true; - for (typename FastSparseVector::const_iterator i=v.begin(),e=v.end();i!=e;++i) { - if (first) - first=false; - else - o<first)<second; - } - o << post; -} - -template -inline std::ostream& operator<<(std::ostream& out, const FastSparseVector& v) { - print(out, v); - return out; -} - #endif -- cgit v1.2.3