MCPcopy Create free account
hub / github.com/OpenPrinting/cups / remove

Method remove

ppdc/ppdc-array.cxx:131–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129//
130
131void
132ppdcArray::remove(ppdcShared *d) // I - Data element
133{
134 size_t i; // Looping var
135
136
137 for (i = 0; i < count; i ++)
138 if (d == data[i])
139 break;
140
141 if (i >= count)
142 return;
143
144 count --;
145 d->release();
146
147 if (i < count)
148 memmove(data + i, data + i + 1, (size_t)(count - i) * sizeof(ppdcShared *));
149}

Callers 1

get_duplexMethod · 0.80

Calls 1

releaseMethod · 0.80

Tested by

no test coverage detected