| 196 | |
| 197 | |
| 198 | void MetadataBuilder::truncate(CheckStatusWrapper* status, unsigned count) |
| 199 | { |
| 200 | try |
| 201 | { |
| 202 | MutexLockGuard g(mtx, FB_FUNCTION); |
| 203 | |
| 204 | if (count != 0) |
| 205 | indexError(count - 1, "truncate"); |
| 206 | |
| 207 | msgMetadata->items.shrink(count); |
| 208 | } |
| 209 | catch (const Exception& ex) |
| 210 | { |
| 211 | ex.stuffException(status); |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | void MetadataBuilder::remove(CheckStatusWrapper* status, unsigned index) |
| 216 | { |
nothing calls this directly
no test coverage detected