diff options
Diffstat (limited to 'src/comp.c')
-rw-r--r-- | src/comp.c | 23 |
1 files changed, 1 insertions, 22 deletions
@@ -26,7 +26,2 @@ struct complist | |||
26 | 26 | ||
27 | /* 0 on the first load, and 1 on all subsequent reloads. Tells the | ||
28 | component_config_commit whether we're starting from scratch or just | ||
29 | updating an already loaded configuration */ | ||
30 | static int loaded; | ||
31 | |||
32 | static struct complist comp_list[2]; | 27 | static struct complist comp_list[2]; |
@@ -542,12 +537,3 @@ component_config_commit (void) | |||
542 | /* Rearrange components, registering entries for the new ones */ | 537 | /* Rearrange components, registering entries for the new ones */ |
543 | for (comp = list->head, i = 0; comp; ) | 538 | for (comp = list->head, i = 0; comp; comp = comp->next, i++) |
544 | { | ||
545 | struct component *next = comp->next; | ||
546 | if (loaded && comp->mode == pies_comp_startup) | ||
547 | { | ||
548 | /* Ignore startup components */ | ||
549 | component_unlink (comp); | ||
550 | component_free (comp); | ||
551 | } | ||
552 | else | ||
553 | { | 539 | { |
@@ -565,8 +551,3 @@ component_config_commit (void) | |||
565 | comp->arridx = i; | 551 | comp->arridx = i; |
566 | i++; | ||
567 | } | 552 | } |
568 | comp = next; | ||
569 | } | ||
570 | /* Adjust comp_count */ | ||
571 | comp_count = i; | ||
572 | 553 | ||
@@ -587,4 +568,2 @@ component_config_commit (void) | |||
587 | register_prog (comp); | 568 | register_prog (comp); |
588 | |||
589 | loaded = 1; | ||
590 | } | 569 | } |