]> git.sur5r.net Git - i3/i3/blobdiff - src/commands_parser.c
Remove yajl major version conditionals
[i3/i3] / src / commands_parser.c
index 05d39cff53790ef42ed61ab1e896a137f19a3984..870260487358cd8dccb9ff498e302662c64e6d78 100644 (file)
@@ -209,12 +209,8 @@ struct CommandResult *parse_command(const char *input) {
     DLOG("COMMAND: *%s*\n", input);
     state = INITIAL;
 
-/* A YAJL JSON generator used for formatting replies. */
-#if YAJL_MAJOR >= 2
+    /* A YAJL JSON generator used for formatting replies. */
     command_output.json_gen = yajl_gen_alloc(NULL);
-#else
-    command_output.json_gen = yajl_gen_alloc(NULL, NULL);
-#endif
 
     y(array_open);
     command_output.needs_tree_render = false;