diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2015-02-08 09:29:49 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2015-02-08 09:29:49 +0000 |
| commit | 91ca2718bc979f20ec5e7e08f1a691edfb10752f (patch) | |
| tree | 93ff12bc87d305e57be0cef89926f28b60d3ceb1 /src/widgets/gradient-toolbar.cpp | |
| parent | Fixing dead assignment and uninitialized argument value. (diff) | |
| download | inkscape-91ca2718bc979f20ec5e7e08f1a691edfb10752f.tar.gz inkscape-91ca2718bc979f20ec5e7e08f1a691edfb10752f.zip | |
Commenting dead assignments.
(bzr r13909)
Diffstat (limited to 'src/widgets/gradient-toolbar.cpp')
| -rw-r--r-- | src/widgets/gradient-toolbar.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/widgets/gradient-toolbar.cpp b/src/widgets/gradient-toolbar.cpp index ea009c048..7ce04403b 100644 --- a/src/widgets/gradient-toolbar.cpp +++ b/src/widgets/gradient-toolbar.cpp @@ -167,13 +167,15 @@ gboolean gr_vector_list(GtkWidget *combo_box, SPDesktop *desktop, bool selection if (gr_selected == NULL) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("No gradient"), 1, NULL, 2, NULL, -1); - sensitive = FALSE; + // Dead assignment: Value stored to 'sensitive' is never read + //sensitive = FALSE; } if (gr_multi) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, _("Multiple gradients"), 1, NULL, 2, NULL, -1); - sensitive = FALSE; + // Dead assignment: Value stored to 'sensitive' is never read + //sensitive = FALSE; } guint idx = 0; @@ -786,7 +788,8 @@ static gboolean update_stop_list( GtkWidget *stop_combo, SPGradient *gradient, S gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, label.c_str(), 1, pb, 2, stop, -1); - sensitive = FALSE; + // Dead assignment: Value stored to 'sensitive' is never read + //sensitive = FALSE; } } |
