1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-02-17 11:45:50 +00:00

SetRecordData is not really needed anymore so get rid of it

Always use SetRecordDataFull now.
This commit is contained in:
King_DuckZ 2016-06-04 01:13:26 +02:00
parent 7117ff7be2
commit 2057c797cb
4 changed files with 3 additions and 11 deletions

View file

@ -30,7 +30,6 @@
namespace mchlib {
struct TigerHash;
struct FileRecordData;
struct SetRecordData;
struct SetRecordDataFull;
} //namespace mchlib

View file

@ -130,17 +130,13 @@ namespace mchlib {
bool hash_valid;
};
struct SetRecordData {
boost::string_ref name;
char type;
char content_type;
};
struct SetRecordDataFull : public SetRecordData {
struct SetRecordDataFull {
std::string name;
std::string disk_label;
std::string fs_uuid;
uint32_t disk_number;
char type;
char content_type;
};
#if !defined(NDEBUG)

View file

@ -24,7 +24,6 @@
namespace mchlib {
struct FileRecordData;
struct SetRecordData;
struct SetRecordDataFull;
struct TigerHash;
} //namespace mchlib

View file

@ -29,13 +29,11 @@ namespace mchlib {
}
void SetBasic::on_data_destroy (SetRecordDataFull& parData) {
static_cast<SetRecordData&>(parData).name.clear();
parData.name.clear();
}
void SetBasic::on_data_create (SetRecordDataFull& parData) {
parData.name = m_set_name;
static_cast<SetRecordData&>(parData).name = parData.name;
}
} //namespace scantask
} //namespace mchlib