[glom] cppcheck: Remove unused variables.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] cppcheck: Remove unused variables.
- Date: Sun, 1 Nov 2015 12:57:11 +0000 (UTC)
commit 8daeb6de6c270fe38d3e58a347a3c152d99077d7
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Oct 30 10:13:28 2015 +0100
cppcheck: Remove unused variables.
glom/box_reports.cc | 1 -
glom/libglom/utils.cc | 2 --
glom/mode_design/dialog_database_preferences.cc | 2 --
.../mode_design/print_layouts/box_print_layouts.cc | 1 -
glom/print_layout/canvas_print_layout.cc | 3 ---
5 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/glom/box_reports.cc b/glom/box_reports.cc
index 1da8c1b..311a1ef 100644
--- a/glom/box_reports.cc
+++ b/glom/box_reports.cc
@@ -99,7 +99,6 @@ bool Box_Reports::fill_from_database()
m_colTitle = m_AddDel.add_column(_("Title"), AddDelColumnInfo::enumStyles::Text, editable, true);
- std::vector<Glib::ustring> listTableReports;
auto document = get_document();
if(document)
{
diff --git a/glom/libglom/utils.cc b/glom/libglom/utils.cc
index c40fde3..8122c86 100644
--- a/glom/libglom/utils.cc
+++ b/glom/libglom/utils.cc
@@ -1116,8 +1116,6 @@ Gnome::Gda::SqlExpr Utils::get_find_where_clause_quick(const Document* document,
const Document::type_vec_fields fields = document->get_table_fields(table_name);
guint previous_id = 0;
- typedef std::vector< std::shared_ptr<LayoutItem_Field> > type_vecLayoutFields;
- type_vecLayoutFields fieldsToGet;
for(const auto& field : fields)
{
Glib::ustring strClausePart;
diff --git a/glom/mode_design/dialog_database_preferences.cc b/glom/mode_design/dialog_database_preferences.cc
index 8c588ba..379c8fc 100644
--- a/glom/mode_design/dialog_database_preferences.cc
+++ b/glom/mode_design/dialog_database_preferences.cc
@@ -262,8 +262,6 @@ void Dialog_Database_Preferences::on_button_test_script()
{
const Glib::ustring calculation = m_text_view_script->get_buffer()->get_text();
- type_map_fields field_values;
-
auto document = get_document();
if(!document)
return;
diff --git a/glom/mode_design/print_layouts/box_print_layouts.cc
b/glom/mode_design/print_layouts/box_print_layouts.cc
index c66e47a..4cb3919 100644
--- a/glom/mode_design/print_layouts/box_print_layouts.cc
+++ b/glom/mode_design/print_layouts/box_print_layouts.cc
@@ -98,7 +98,6 @@ bool Box_Print_Layouts::fill_from_database()
m_colTitle = m_AddDel.add_column(_("Title"), AddDelColumnInfo::enumStyles::Text, editable, true);
- std::vector<Glib::ustring> listItems;
auto document = get_document();
if(document)
{
diff --git a/glom/print_layout/canvas_print_layout.cc b/glom/print_layout/canvas_print_layout.cc
index 79bac89..12963ee 100644
--- a/glom/print_layout/canvas_print_layout.cc
+++ b/glom/print_layout/canvas_print_layout.cc
@@ -747,9 +747,6 @@ void Canvas_PrintLayout::fill_with_data(const Glib::RefPtr<Goocanvas::Group>& ca
typedef std::map<Glib::ustring, guint> type_map_layout_fields_index;
type_map_layout_fields_index map_fields_index;
- typedef std::list< std::shared_ptr<LayoutItem_Portal> > type_list_portals;
- type_list_portals list_portals;
-
//Get list of fields to get from the database.
Utils::type_vecLayoutFields fieldsToGet;
const int count = canvas_group->get_n_children();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]