Skip to content

Commit b207ec0

Browse files
Chris Morinsofar
authored andcommitted
get rid of string-table
1 parent c49b23a commit b207ec0

4 files changed

Lines changed: 0 additions & 149 deletions

File tree

Makefile.am

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ libutils_la_SOURCES = \
152152
src/siphash24.c \
153153
src/siphash24.h \
154154
src/stdio-util.h \
155-
src/string-table.c \
156-
src/string-table.h \
157155
src/string-util.c \
158156
src/string-util.h \
159157
src/strv.c \

src/process-util.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "macro.h"
3434
#include "missing.h"
3535
#include "process-util.h"
36-
#include "string-table.h"
3736

3837
int getenv_for_pid(pid_t pid, const char *field, char **_value) {
3938
_cleanup_fclose_ FILE *f = NULL;
@@ -100,14 +99,3 @@ bool is_main_thread(void) {
10099

101100
return cached > 0;
102101
}
103-
104-
static const char *const sigchld_code_table[] = {
105-
[CLD_EXITED] = "exited",
106-
[CLD_KILLED] = "killed",
107-
[CLD_DUMPED] = "dumped",
108-
[CLD_TRAPPED] = "trapped",
109-
[CLD_STOPPED] = "stopped",
110-
[CLD_CONTINUED] = "continued",
111-
};
112-
113-
DEFINE_STRING_TABLE_LOOKUP(sigchld_code, int);

src/string-table.c

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/string-table.h

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)