[glom] ReportBuilder::report_build_records(): Remove dead code.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] ReportBuilder::report_build_records(): Remove dead code.
- Date: Wed, 3 Dec 2014 08:56:07 +0000 (UTC)
commit 29967815590db89aae8160e78c13f68428ba657b
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Dec 3 09:55:31 2014 +0100
ReportBuilder::report_build_records(): Remove dead code.
Found by Coverity Scan.
glom/libglom/report_builder.cc | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/glom/libglom/report_builder.cc b/glom/libglom/report_builder.cc
index 5c13b3b..07144b8 100644
--- a/glom/libglom/report_builder.cc
+++ b/glom/libglom/report_builder.cc
@@ -415,8 +415,6 @@ bool ReportBuilder::report_build_records(const FoundSet& found_set, xmlpp::Eleme
guint colField = 0;
for(type_vecLayoutItems::const_iterator iter = items.begin(); iter != items.end(); ++iter)
{
- xmlpp::Element* nodeField = 0;
-
sharedptr<LayoutItem> item = *iter;
sharedptr<LayoutItem_Field> field = sharedptr<LayoutItem_Field>::cast_dynamic(item);
if(field)
@@ -451,9 +449,6 @@ bool ReportBuilder::report_build_records(const FoundSet& found_set, xmlpp::Eleme
}
}
}
-
- if(nodeField)
- nodeField->set_attribute("name", item->get_name()); //Not really necessary, but maybe useful.
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]