summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2014-05-12 07:54:45 -0700
committerPatrick Ohly <patrick.ohly@intel.com>2014-05-12 07:54:45 -0700
commit009ac47ee7f36c5810d5b69add988ac14c6aca0d (patch)
treef6def08f9252a13cb21ca70836a9671ecc7fef8f
parent9b6fa0ce7a5ed10d7628276b26301667b8956357 (diff)
MIME parser + encoder: remove dead code
The variable assignment became redundant when removing the backslash escaping support for parameters in "MIME parser + encoder: no backslash quoting in parameter values".
-rw-r--r--src/sysync/mimedirprofile.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/sysync/mimedirprofile.cpp b/src/sysync/mimedirprofile.cpp
index 83acbca..418c5d0 100644
--- a/src/sysync/mimedirprofile.cpp
+++ b/src/sysync/mimedirprofile.cpp
@@ -2389,7 +2389,6 @@ sInt16 TMimeDirProfileHandler::generateValue(
// perform escaping and determine need for encoding
bool spaceonly = true;
- bool firstchar = true;
for (const char *p=val.c_str();(c=*p)!=0 && (c!=aConvDefP->combineSep);p++) {
// process char
// - check for whitespace
@@ -2409,7 +2408,6 @@ sInt16 TMimeDirProfileHandler::generateValue(
switch (c) {
case '"':
if (aParamValue) { c = '\''; goto add_char; } // replace double quotes with single quotes
- // if (firstchar && aParamValue && aMimeMode==mimo_standard) goto do_escape; // if param value starts with a double quote, we need to escape it because param value can be in double-quote-enclosed form
goto add_char; // otherwise, just add
case ',':
// in MIME-DIR, always escape commas, in pre-MIME-DIR only if usage in value list requires it
@@ -2462,7 +2460,6 @@ sInt16 TMimeDirProfileHandler::generateValue(
if ((uInt8)c > 0x7F) aNonASCII=true;
// just copy to output
outval+=c;
- firstchar = false; // first char is out
break;
}
} // for all chars in val item
@@ -4154,7 +4151,6 @@ bool TMimeDirProfileHandler::parseProperty(
// - calculate repeat offset to be used
repinc=propnameextP->repeatInc;
// note: repArray will be updated below (if property not empty or !overwriteempty)
- dostore=true; // we can store
do {
repoffset = aRepArray[repid]*repinc;
// - set flag if repeat offset should be incremented after storing an empty property or not