Remove unused hb_set_t

This commit is contained in:
Behdad Esfahbod 2011-05-11 22:23:15 -04:00
parent 389a7c9e67
commit c84d15f52e
1 changed files with 0 additions and 48 deletions

View File

@ -408,54 +408,6 @@ struct hb_lockable_set_t
};
template <typename item_t>
struct hb_set_t
{
struct lock_t {
int unused;
inline void lock (void) {}
inline void unlock (void) {}
};
hb_lockable_set_t <item_t, lock_t> set;
template <typename T>
inline item_t *replace_or_insert (T v)
{
lock_t lock;
return set.replace_or_insert (v, lock);
}
template <typename T>
inline void remove (T v)
{
lock_t lock;
set.remove (v, lock);
}
template <typename T>
inline bool find (T v, item_t *i)
{
lock_t lock;
return set.find (v, i, lock);
}
template <typename T>
inline item_t *find_or_insert (T v)
{
lock_t lock;
return set.find_or_insert (v, lock);
}
void finish (void)
{
lock_t lock;
set.finish (lock);
}
};
HB_BEGIN_DECLS