]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
removed an old vector related function
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 25 Apr 2012 12:59:35 +0000 (14:59 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 25 Apr 2012 15:27:48 +0000 (17:27 +0200)
ir.c

diff --git a/ir.c b/ir.c
index e212b90f7bcec142f49ed114352d5a1eabe5b981..6edc81019384d136579f5f3ab9d10db2f2c5a888 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -396,24 +396,6 @@ ir_bool ir_value_lives(ir_value *self, size_t at)
     return ifalse;
 }
 
-/*
-void ir_value_life_remove(ir_value *self, size_t idx)
-{
-    size_t i;
-    if (idx >= self->life_count)
-        return;
-    for (i = idx; i < self->life_count-1; ++i)
-        self->life[i] = self->life[i+1];
-    self->life_count--;
-    if (self->life_count < self->life_alloc/2)
-    {
-        self->life_alloc /= 2;
-        self->life = (ir_life_entry_t*)realloc(self->life,
-            self->life_alloc * sizeof(ir_life_entry_t));
-    }
-}
-*/
-
 void ir_value_life_insert(ir_value *self, size_t idx, ir_life_entry_t e)
 {
     size_t k;