Duplicate logging dropped; cleanup

This commit is contained in:
Roman Shevchenko
2012-09-11 19:31:55 +04:00
parent 4cbe87de02
commit 2415da1468
@@ -163,9 +163,6 @@ public abstract class XmlElementStorage implements StateStorage, Disposable {
if (document != null) {
loadState(result, document.getRootElement());
}
else {
LOG.info("Document was not loaded for " + myFileSpec);
}
if (!myIsProjectSettings && useProvidersData) {
for (RoamingType roamingType : RoamingType.values()) {
@@ -173,11 +170,9 @@ public abstract class XmlElementStorage implements StateStorage, Disposable {
try {
if (myStreamProvider.isEnabled()) {
final Document sharedDocument = StorageUtil.loadDocument(myStreamProvider.loadContent(myFileSpec, roamingType));
if (sharedDocument != null) {
filterComponentsDisabledForRoaming(sharedDocument.getRootElement(), roamingType);
filterOutOfDateComponents(sharedDocument.getRootElement());
loadState(result, sharedDocument.getRootElement());
}
}
@@ -186,11 +181,9 @@ public abstract class XmlElementStorage implements StateStorage, Disposable {
LOG.warn(e);
}
}
}
}
return result;
}