ResScalarValue: removed serializeXmlBody().

It didn't make much sense.
This commit is contained in:
Ryszard Wiśniewski 2011-12-02 02:49:46 +01:00
parent 8b6e02b41a
commit 4a0febd862
2 changed files with 1 additions and 12 deletions

View File

@ -64,7 +64,7 @@ public abstract class ResScalarValue extends ResValue
serializeExtraXmlAttrs(serializer, res);
String body = serializeXmlBody(serializer, res);
String body = encodeAsResXmlValue();
if (! body.isEmpty()) {
serializer.ignorableWhitespace(body);
}
@ -76,11 +76,6 @@ public abstract class ResScalarValue extends ResValue
return mType;
}
protected String serializeXmlBody(XmlSerializer serializer,
ResResource res) throws IOException, AndrolibException {
return encodeAsResXmlValue();
}
protected void serializeExtraXmlAttrs(XmlSerializer serializer,
ResResource res) throws IOException {
}

View File

@ -51,12 +51,6 @@ public class ResStringValue extends ResScalarValue {
throw new UnsupportedOperationException();
}
@Override
protected String serializeXmlBody(XmlSerializer serializer, ResResource res)
throws IOException, AndrolibException {
return ResXmlEncoders.encodeAsXmlValue(mRawValue);
}
@Override
protected void serializeExtraXmlAttrs(XmlSerializer serializer,
ResResource res) throws IOException {