Permalink
Browse files

removed unused var task_id_str. Consted a pointer, and marked an inte…

…rp UNUSED
  • Loading branch information...
1 parent 625b5bb commit fd1a80031125817563d5dca1a49b86da8668b18c @petdance petdance committed Oct 18, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/pmc/scheduler.pmc
View
@@ -115,7 +115,6 @@ current maximum, and a birthtime of the current time.
void push_pmc(PMC *task) {
Parrot_Scheduler_attributes * const core_struct = PARROT_SCHEDULER(SELF);
- STRING *task_id_str;
INTVAL new_tid;
VTABLE_set_number_native(INTERP, task, Parrot_floatval_time());
@@ -177,7 +176,7 @@ Retrieves the number of pending tasks in the scheduler's task list.
*/
VTABLE INTVAL get_integer() {
- Parrot_Scheduler_attributes * core_struct = PARROT_SCHEDULER(SELF);
+ Parrot_Scheduler_attributes * const core_struct = PARROT_SCHEDULER(SELF);
return VTABLE_elements(INTERP, core_struct->task_index);
}
@@ -210,6 +209,8 @@ Frees the scheduler's underlying struct.
*/
VTABLE void destroy() {
Parrot_Scheduler_attributes * const core_struct = PARROT_SCHEDULER(SELF);
+ UNUSED(interp);
+
core_struct->interp->scheduler = NULL;
}

0 comments on commit fd1a800

Please sign in to comment.