Ignore:
Timestamp:
Apr 22, 2011, 7:32:17 PM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: remove a lot of dead code, especially from the linked list and
the WAV reader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/image.cpp

    r526 r534  
    690690    int x1 = 6000, y1 = 6000, x2 = -1, y2 = -1;
    691691
    692     for (int i = dirties.number_nodes(); i--; )
     692    for (int i = dirties.Count(); i--; )
    693693    {
    694694        x1 = Min(x1, p->dx1); y1 = Min(y1, p->dy1);
    695695        x2 = Max(x1, p->dx1); y2 = Max(y1, p->dy1);
    696         dirty_rect *tmp = (dirty_rect *)p->next();
     696        dirty_rect *tmp = (dirty_rect *)p->Next();
    697697        dirties.unlink(p);
    698698        delete p;
     
    716716        return;
    717717
    718     int i = dirties.number_nodes();
     718    int i = dirties.Count();
    719719    if (!i)
    720720        return;
     
    722722    for (p = (dirty_rect *)dirties.first(); i; i--, p = next)
    723723    {
    724         next = (dirty_rect *)p->next();
     724        next = (dirty_rect *)p->Next();
    725725
    726726        // are the two touching?
     
    815815        return;
    816816
    817     int i = dirties.number_nodes();
     817    int i = dirties.Count();
    818818    if (!i)
    819819        dirties.add_front(new dirty_rect(x1, y1, x2 - 1, y2 - 1));
     
    831831        if (x1<=p->dx1 && y1<=p->dy1 && x2>=p->dx2+1 && y2>=p->dy2+1)
    832832        {
    833           dirty_rect *tmp=(dirty_rect*) p->next();
     833          dirty_rect *tmp=(dirty_rect*) p->Next();
    834834          dirties.unlink(p);
    835835          delete p;
     
    867867              return ;
    868868            }
    869             p=(dirty_rect *)p->next();
    870           } else p=(dirty_rect *)p->next();
     869            p=(dirty_rect *)p->Next();
     870          } else p=(dirty_rect *)p->Next();
    871871
    872872      }
Note: See TracChangeset for help on using the changeset viewer.