| 245 | |
| 246 | |
| 247 | int |
| 248 | ID::removeValue(int value) |
| 249 | { |
| 250 | int place = -1; |
| 251 | for (int i=0; i<sz; i++) |
| 252 | if (data[i] == value) { |
| 253 | place = i; |
| 254 | // copy the rest of the components down one in ID |
| 255 | for (int j=i; j<sz-1; j++) |
| 256 | data[j] = data[j+1]; |
| 257 | sz--; |
| 258 | } |
| 259 | return place; |
| 260 | } |
| 261 | |
| 262 | |
| 263 | int |
no outgoing calls
no test coverage detected