Commit fa63d33
committed
ci: drop <config.h> include + collapse radix descent duplicate
* test/unit/http_request_operator_stream_test.cpp: remove the
`#include <config.h>` I added in 203780f. HAVE_BAUTH is forwarded
into test compiles via -DHAVE_BAUTH on the libtool command line
(the same mechanism every other HAVE_BAUTH-gated test uses);
pulling in config.h directly re-defines DEBUG and conflicts with
the -DDEBUG flag autotools sets on the debug + coverage / sanitiser
lanes (DEBUG macro redefined -Werror). The `#ifdef HAVE_BAUTH` gate
itself stays; only the redundant include goes.
* src/httpserver/detail/radix_tree.hpp: hoist the
has_terminus_at / remove descent loop into a single templated
walk_registered_pattern_ helper. The two functions both walked
the registered-pattern tree by exact-child-then-wildcard step and
shared a 14-line / 101-token block (PMD CPD finding). The helper
is templated on Node so the mutable / const variants share one
descent body; CCN stays inside the gate and the duplicate is gone.1 parent 203780f commit fa63d33
2 files changed
Lines changed: 44 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
288 | 277 | | |
289 | 278 | | |
290 | 279 | | |
| |||
295 | 284 | | |
296 | 285 | | |
297 | 286 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
315 | 290 | | |
316 | 291 | | |
317 | 292 | | |
| |||
337 | 312 | | |
338 | 313 | | |
339 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
340 | 343 | | |
341 | 344 | | |
342 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments