Skip to content

Commit

Permalink
- Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Mar 31, 2013
1 parent b372727 commit ea24cc4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion modules/std/collection/cqueue.cc
Expand Up @@ -119,7 +119,6 @@ CLEVER_TYPE_INIT(CQueue::init)
addMethod(new Function("back", (MethodPtr)&CQueue::back));
}

/*PriorityQueue*/
bool operator<(const CPQValue& a, const CPQValue& b)
{
::std::vector<Value*> args;
Expand Down
4 changes: 1 addition & 3 deletions modules/std/collection/cqueue.h
Expand Up @@ -13,7 +13,6 @@

namespace clever { namespace modules { namespace std {

/*PriorityQueue*/
struct CPQValue {
CPQValue(Value* elem, const Function* func_, const VM* vm_)
: element(elem), comp(func_), vm(vm_) {}
Expand All @@ -34,10 +33,9 @@ struct CPQObject : public TypeObject {

~CPQObject() {
while (!pq.empty()) {
delete pq.top().element;
clever_delref(pq.top().element);
pq.pop();
}

}

::std::priority_queue<CPQValue> pq;
Expand Down
3 changes: 1 addition & 2 deletions modules/std/collection/cset.cc
Expand Up @@ -178,8 +178,7 @@ CLEVER_METHOD(CSet::ctor)
return;
}

result->setObj(this,
new CSetObject(static_cast<Function*>(args[0]->getObj())));
result->setObj(this, new CSetObject(comp));
}

// Set.insert(Object element)
Expand Down

0 comments on commit ea24cc4

Please sign in to comment.