Remove unneeded boolean hasStringWrite

master
Jos van den Oever 2018-08-05 19:36:50 +02:00
parent b32ed198c7
commit cdc50304b3
1 changed files with 0 additions and 3 deletions

View File

@ -764,7 +764,6 @@ QString rustFile(const QDir rustdir, const QString& module) {
void writeRustTypes(const Configuration& conf, QTextStream& r) {
bool hasOption = false;
bool hasString = false;
bool hasStringWrite = false;
bool hasByteArray = false;
bool hasListOrTree = false;
@ -773,8 +772,6 @@ void writeRustTypes(const Configuration& conf, QTextStream& r) {
for (auto p: o.properties) {
hasOption |= p.optional;
hasString |= p.type.type == BindingType::QString;
hasStringWrite |= p.type.type == BindingType::QString
&& p.write;
hasByteArray |= p.type.type == BindingType::QByteArray;
}
for (auto p: o.itemProperties) {