[priority-queue] Remove old init/fini
This commit is contained in:
parent
bff8248a9d
commit
6b62c10f02
|
@ -38,18 +38,11 @@
|
||||||
*/
|
*/
|
||||||
struct hb_priority_queue_t
|
struct hb_priority_queue_t
|
||||||
{
|
{
|
||||||
HB_DELETE_COPY_ASSIGN (hb_priority_queue_t);
|
|
||||||
hb_priority_queue_t () { init (); }
|
|
||||||
~hb_priority_queue_t () { fini (); }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef hb_pair_t<int64_t, unsigned> item_t;
|
typedef hb_pair_t<int64_t, unsigned> item_t;
|
||||||
hb_vector_t<item_t> heap;
|
hb_vector_t<item_t> heap;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void init () { heap.init (); }
|
|
||||||
|
|
||||||
void fini () { heap.fini (); }
|
|
||||||
|
|
||||||
void reset () { heap.resize (0); }
|
void reset () { heap.resize (0); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue