A Tripoli appeals court has acquitted 31 former Gaddafi regime officials of suppressing the 2011 revolution, closing a case that resulted in multiple death sentences in 2015.