builder/module: Drop some unreachable code

use_builddir is TRUE if meson is TRUE, so there can never be a meson
case in the !use_builddir case.

Coverity issue: 1452428

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall
2017-08-15 12:24:01 +01:00
parent 2106b80965
commit 0cd65edc8b

View File

@@ -1461,13 +1461,9 @@ builder_module_build (BuilderModule *self,
configure_cmd = "cmake";
configure_final_arg = g_strdup (".");
}
else if (meson)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "module %s: Meson does not support building in sourcedir, set \"builddir\" to true.", self->name);
return FALSE;
}
else
else
{
g_assert (!meson);
configure_cmd = "./configure";
}
}