Skip to content

Commit

Permalink
rename delete_item to delete_backward
Browse files Browse the repository at this point in the history
  • Loading branch information
evan committed Dec 15, 2008
1 parent 67ad853 commit 353cd28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fk.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static void fk_delete_forward(FKItem *item)
}
}

static void fk_delete_item(FKItem *item)
static void fk_delete_backward(FKItem *item)
{
g_assert(item);
g_assert(item->key);
Expand All @@ -190,7 +190,7 @@ static void fk_delete_item(FKItem *item)
g_assert(it);
rdep = rdep->next;
if (!(it->flags & FK_FLAG_DELETED))
fk_delete_item(it);
fk_delete_backward(it);
}

/* Try deleting forward now */
Expand All @@ -210,7 +210,7 @@ void fk_delete(const gchar *name)
{
FKItem *item = g_hash_table_lookup(FK_HASH, name);
if (item) {
fk_delete_item(item);
fk_delete_backward(item);
g_assert(g_hash_table_lookup(FK_HASH, name) == NULL);
}
}
Expand Down

0 comments on commit 353cd28

Please sign in to comment.