dump unused sprixel_by_id() #1656

pull/1660/head
nick black 3 years ago
parent ce2f2c6509
commit f64b1deeb7
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -966,7 +966,6 @@ int sprite_init(const tinfo* t, int fd);
int sprite_clear_all(const tinfo* t, int fd);
int kitty_shutdown(int fd);
int sixel_shutdown(int fd);
sprixel* sprixel_by_id(const ncpile* n, uint32_t id);
// these three all use absolute coordinates
void sprixel_invalidate(sprixel* s, int y, int x);
void sprixel_movefrom(sprixel* s, int y, int x);

@ -208,10 +208,6 @@ paint_sprixel(ncplane* p, struct crender* rvec, int starty, int startx,
// the sprixelstack orders sprixels of the plane (so we needn't keep them
// ordered between renders). each time we meet a sprixel, extract it from
// the pile's sprixel list, and update the sprixelstack.
//
// FIXME lift the cell_sprixel_p() variant out and run it its own way
// (unless we want to let sprixels live off-origin in ncplanes), eliminating
// per-cell sprixel_by_id() check
static void
paint(ncplane* p, struct crender* rvec, int dstleny, int dstlenx,
int dstabsy, int dstabsx, sprixel** sprixelstack){

@ -115,15 +115,6 @@ void sprixel_invalidate(sprixel* s, int y, int x){
}
}
sprixel* sprixel_by_id(const ncpile* n, uint32_t id){
for(sprixel* cur = n->sprixelcache ; cur ; cur = cur->next){
if(cur->id == id){
return cur;
}
}
return NULL;
}
sprixel* sprixel_alloc(ncplane* n, int dimy, int dimx){
sprixel* ret = malloc(sizeof(sprixel));
if(ret){

Loading…
Cancel
Save