enum was unnecessary

This commit is contained in:
Tom Mason 2013-08-18 12:29:12 +01:00
parent 641b7b0336
commit 9d1daf7dc2

View file

@ -7,14 +7,6 @@ namespace bfs = boost::filesystem;
namespace namespace
{ {
typedef enum
{
FORMAT_NEW,
FORMAT_OLD,
FORMAT_RAW
} FORMAT;
static bool make_sure_directory_exists(bfs::path directory) static bool make_sure_directory_exists(bfs::path directory)
{ {
@ -322,19 +314,7 @@ bool UnshieldThread::extract_file(Unshield* unshield, bfs::path output_dir, cons
emit signalGUI(QString("Extracting: ") + QString(filename.c_str())); emit signalGUI(QString("Extracting: ") + QString(filename.c_str()));
FORMAT format = FORMAT_NEW;
switch (format)
{
case FORMAT_NEW:
success = unshield_file_save(unshield, index, filename.c_str()); success = unshield_file_save(unshield, index, filename.c_str());
break;
case FORMAT_OLD:
success = unshield_file_save_old(unshield, index, filename.c_str());
break;
case FORMAT_RAW:
success = unshield_file_save_raw(unshield, index, filename.c_str());
break;
}
if (!success) if (!success)
bfs::remove(filename); bfs::remove(filename);