Browse Source

Remove nobuild__pipe_arg_as_cstr()

rexim 4 years ago
parent
commit
f0797018bc
1 changed files with 0 additions and 15 deletions
  1. 0 15
      nobuild.h

+ 0 - 15
nobuild.h

@@ -196,8 +196,6 @@ typedef enum {
     PIPE_ARG_CHAIN,
 } Pipe_Arg_Type;
 
-const char *nobuild__pipe_arg_as_cstr(Pipe_Arg_Type type);
-
 typedef struct {
     Pipe_Arg_Type type;
     const char** args;
@@ -855,17 +853,4 @@ Pipe_Arg nobuild__make_pipe_arg(Pipe_Arg_Type type, ...)
     return result;
 }
 
-const char *nobuild__pipe_arg_as_cstr(Pipe_Arg_Type type)
-{
-    switch (type) {
-    case PIPE_ARG_IN: return "PIPE_ARG_IN";
-    case PIPE_ARG_OUT: return "PIPE_ARG_OUT";
-    case PIPE_ARG_CHAIN: return "PIPE_ARG_CHAIN";
-    default: {
-        assert(0 && "nobuild__pipe_arg_as_cstr: unreachable");
-        return NULL;
-    }
-    }
-}
-
 #endif // NOBUILD_IMPLEMENTATION