aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-15 23:16:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-16 10:50:05 +0800
commitcae22334fa6bc395ccc421b09e0af94c89297c41 (patch)
tree84881f467c0448db044d8bb3533e044a7152bb2b /addressbook
parentd37784ed3db20fd74ea4b8d9fdfe58518370cea2 (diff)
downloadgsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.gz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.zst
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.zip
Remove dead assignments found by clang.
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/conduit/address-conduit.c8
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-editor.c6
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c10
-rw-r--r--addressbook/gui/widgets/e-minicard.c1
-rw-r--r--addressbook/gui/widgets/eab-contact-display.c12
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c3
-rw-r--r--addressbook/importers/evolution-csv-importer.c7
-rw-r--r--addressbook/printing/e-contact-print.c6
-rw-r--r--addressbook/util/eab-book-util.c2
9 files changed, 6 insertions, 49 deletions
diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c
index 3c2436dc27..73fb68b0ee 100644
--- a/addressbook/conduit/address-conduit.c
+++ b/addressbook/conduit/address-conduit.c
@@ -1147,7 +1147,6 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
{
EContactAddress *address = NULL;
gint phone = entryPhone1;
- EContactField field;
gboolean syncable;
gint i;
@@ -1222,9 +1221,10 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
local->addr->entry[entryTitle] = e_pilot_utf8_to_pchar (e_contact_get_const (contact, E_CONTACT_TITLE), ctxt->pilot_charset);
/* See if the default has something in it */
- if ((address = e_contact_get (contact, ctxt->cfg->default_address))) {
- field = ctxt->cfg->default_address;
- } else {
+ address = e_contact_get (contact, ctxt->cfg->default_address);
+ if (address == NULL) {
+ EContactField field;
+
/* Try to find a non-empty address field */
for (field = E_CONTACT_FIRST_ADDRESS_ID; field <= E_CONTACT_LAST_ADDRESS_ID; field++) {
if ((address = e_contact_get (contact, field)))
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
index 18495d59c9..0b0c71711d 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c
+++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
@@ -512,11 +512,8 @@ contact_list_editor_drag_drop_cb (GtkWidget *widget,
gint x, gint y,
guint time)
{
- EContactListEditor *editor;
GList *iter;
- editor = contact_list_editor_extract (widget);
-
for (iter = context->targets; iter != NULL; iter = iter->next) {
GdkAtom target = GDK_POINTER_TO_ATOM (iter->data);
gchar *possible_type;
@@ -547,11 +544,8 @@ contact_list_editor_drag_motion_cb (GtkWidget *widget,
gint x, gint y,
guint time)
{
- EContactListEditor *editor;
GList *iter;
- editor = contact_list_editor_extract (widget);
-
for (iter = context->targets; iter != NULL; iter = iter->next) {
GdkAtom target = GDK_POINTER_TO_ATOM (iter->data);
gchar *possible_type;
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index bcf6ed6277..cc540c14c3 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -1252,7 +1252,6 @@ e_addressbook_view_delete_selection(EAddressbookView *view, gboolean is_delete)
ETable *etable = NULL;
EAddressbookModel *model;
EBook *book;
- EMinicardView *card_view;
ESelectionModel *selection_model = NULL;
GalViewInstance *view_instance;
GalView *gal_view;
@@ -1280,8 +1279,6 @@ e_addressbook_view_delete_selection(EAddressbookView *view, gboolean is_delete)
widget = gtk_bin_get_child (GTK_BIN (view));
if (GAL_IS_VIEW_MINICARD (gal_view)) {
- card_view = e_minicard_view_widget_get_view (
- E_MINICARD_VIEW_WIDGET (view->priv->object));
selection_model = e_addressbook_view_get_selection_model (view);
row = e_selection_model_cursor_row (selection_model);
}
@@ -1363,19 +1360,12 @@ e_addressbook_view_delete_selection(EAddressbookView *view, gboolean is_delete)
void
e_addressbook_view_view (EAddressbookView *view)
{
- EAddressbookModel *model;
- EBook *book;
GList *list, *iter;
- gboolean editable;
gint response;
guint length;
g_return_if_fail (E_IS_ADDRESSBOOK_VIEW (view));
- model = e_addressbook_view_get_model (view);
- book = e_addressbook_model_get_book (model);
- editable = e_addressbook_model_get_editable (model);
-
list = e_addressbook_view_get_selected (view);
length = g_list_length (list);
response = GTK_RESPONSE_YES;
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index a3d7e3aad4..04bf9757e4 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -983,7 +983,6 @@ remodel( EMinicard *e_minicard )
count = 5;
else
count = count + g_list_length (email);
- is_email=FALSE;
g_list_free (email);
} else {
string = e_contact_get(e_minicard->contact, field);
diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c
index 84f7cba538..dda6081137 100644
--- a/addressbook/gui/widgets/eab-contact-display.c
+++ b/addressbook/gui/widgets/eab-contact-display.c
@@ -916,17 +916,6 @@ contact_display_dispose (GObject *object)
}
static void
-contact_display_finalize (GObject *object)
-{
- EABContactDisplayPrivate *priv;
-
- priv = EAB_CONTACT_DISPLAY_GET_PRIVATE (object);
-
- /* Chain up to parent's finalize() method. */
- G_OBJECT_CLASS (parent_class)->finalize (object);
-}
-
-static void
contact_display_url_requested (GtkHTML *html,
const gchar *uri,
GtkHTMLStream *handle)
@@ -1094,7 +1083,6 @@ eab_contact_display_class_init (EABContactDisplayClass *class)
object_class->set_property = contact_display_set_property;
object_class->get_property = contact_display_get_property;
object_class->dispose = contact_display_dispose;
- object_class->finalize = contact_display_finalize;
html_class = GTK_HTML_CLASS (class);
html_class->url_requested = contact_display_url_requested;
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index 4f84eed6e4..31d05d278c 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -233,7 +233,6 @@ eab_select_source (const gchar *title, const gchar *message, const gchar *select
ESourceList *source_list;
GtkWidget *dialog;
GtkWidget *ok_button;
- GtkWidget *cancel_button;
/* GtkWidget *label; */
GtkWidget *selector;
GtkWidget *scrolled_window;
@@ -247,7 +246,7 @@ eab_select_source (const gchar *title, const gchar *message, const gchar *select
NULL);
gtk_window_set_default_size (GTK_WINDOW (dialog), 350, 300);
- cancel_button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+ gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
ok_button = gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_OK, GTK_RESPONSE_ACCEPT);
gtk_widget_set_sensitive (ok_button, FALSE);
diff --git a/addressbook/importers/evolution-csv-importer.c b/addressbook/importers/evolution-csv-importer.c
index 81dc9b6dac..6a12d7075a 100644
--- a/addressbook/importers/evolution-csv-importer.c
+++ b/addressbook/importers/evolution-csv-importer.c
@@ -298,18 +298,11 @@ static EContactDate*
date_from_string (const gchar *str)
{
EContactDate* date;
- gint length;
- gchar *t;
gint i = 0;
g_return_val_if_fail (str != NULL, NULL);
date = e_contact_date_new();
- /* ignore time part */
- if ((t = strchr (str, 'T')) != NULL)
- length = t - str;
- else
- length = strlen(str);
if (g_ascii_isdigit (str[i]) && g_ascii_isdigit (str[i+1])) {
date->month = str[i] * 10 + str[i+1] - '0' * 11;
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index 07b13d2122..fb135baa23 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -211,12 +211,6 @@ e_contact_print_letter_heading (EContactPrintContext *ctxt, gchar *letter)
static void
e_contact_start_new_page (EContactPrintContext *ctxt)
{
- cairo_t *cr;
-
- cr = gtk_print_context_get_cairo_context (ctxt->context);
-
- /*cairo_show_page (cr);*/
-
ctxt->x = ctxt->y = .0;
ctxt->column = 0;
ctxt->pages++;
diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c
index 84529c9214..6975143bd1 100644
--- a/addressbook/util/eab-book-util.c
+++ b/addressbook/util/eab-book-util.c
@@ -214,7 +214,7 @@ eab_contact_list_from_string (const gchar *str)
p++;
}
- q = p = str_stripped = g_string_free (gstr, FALSE);
+ p = str_stripped = g_string_free (gstr, FALSE);
/* Note: The vCard standard says
*
span>1-1/+1 * 2011-09-01 korean/hlatexfonts-ocf: No more public distfilesbapt2011-09-078-216/+0 * - Mark as broken after x11-toolkits/xforms updategahr2011-09-071-0/+1 * Deprecate print/lyx14, mark for expiration in 1 month.rakuco2011-09-061-0/+3 * - Mark BROKEN: does not compilepav2011-09-061-0/+2 * - better wording of BROKENdinoex2011-08-291-1/+1 * Update my mail address in the ports I maintain.rakuco2011-08-293-3/+3 * Chase editors/emacs update.ashish2011-08-281-0/+1 * - better wording of GNUTLS optiondinoex2011-08-271-1/+1 * - Mark BROKEN: does not packagepav2011-08-271-0/+2 * - Update MASTER_SITES and WWW: linemiwi2011-08-262-7/+11 * - Fix MASTER_SITESmiwi2011-08-262-19/+25 * - Fix MASTER_SITESmiwi2011-08-261-11/+14 * - Fix MASTER_SITESmiwi2011-08-261-2/+9 * - Update to 2.4.6culot2011-08-262-8/+4 * - fix plistdinoex2011-08-251-0/+2 * - add BROKEN fro option GNUTLSdinoex2011-08-251-0/+1 * - better wording of GNUTLS optiondinoex2011-08-253-3/+3 * - update to 1.4.8dinoex2011-08-253-3/+3 * - Unbreak by updating MASTER_SITES [1]culot2011-08-251-3/+2 * - Fix MASTER_SITESculot2011-08-251-1/+4 * - update to 1.4.8dinoex2011-08-254-20/+55 * Chase poppler shlib bumps.kwm2011-08-241-1/+1 * - USE_APACHE= /1.3/13/ /2.0/20/ /2.2/22/ohauer2011-08-211-1/+1 * - Use graphics/potrace as default images converter,nivit2011-08-161-5/+5 * This module allows Perl programs to conveniently read information fromkuriyama2011-08-137-0/+107 * Remove USE_GNOME=gnometarget from ports. It has been a empty keyword sincekwm2011-08-1211-11/+11 * Update to 2.4.6.kwm2011-08-113-3/+4 * - Fix MASTER_SITESwen2011-08-111-4/+1 * nenscript is back from the Attic. Add it here.linimon2011-08-081-0/+1 * - cleanup WWWdinoex2011-08-081-1/+0 * - Update MASTER_SITES and WWWwen2011-08-062-25/+39 * - Update to 2.14.2gahr2011-08-032-4/+3 * Removing old ruby stuffbapt2011-08-035-96/+0 * Remove WWW entries from unmaintained ports that return 404 or where the domainehaupt2011-08-032-4/+0 * Deprecate some ports where I can't find distfiles and upstreambapt2011-08-035-0/+15 * Mark BROKEN: Does not fetchbapt2011-08-031-0/+2 * Mark BROKEN: Does not fetchbapt2011-08-031-0/+2 * Fix master_sitebapt2011-08-032-2/+2 * Back from the Atticbapt2011-08-015-0/+66 * Add print/latex-nomencl, a LaTeX macro package to generate and format ahrs2011-08-015-0/+76 * Bye bye abandonwares (part 4)bapt2011-08-016-71/+0 * - Sort SUBDIRssunpoet2011-08-011-1/+1 * - Chase guile shared lib bumpjlaffaye2011-07-311-1/+2 * Convert custom *_DEPENDS lines of devel/py-gobject to USE_GNOME=pygobject orkwm2011-07-301-2/+1 * - Update to 1.9.58sunpoet2011-07-292-3/+3 * - Chase net-snmp shlib version bump.sylvio2011-07-281-1/+2 * Mark as MAKE_JOBS_UNSAFE.hrs2011-07-251-0/+1 * Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,linimon2011-07-211-1/+1 * Use gdkpixbuf2 instead of gdkpixbuf when WITH_GTK is defined.hrs2011-07-202-2/+2 * Fix a build failure when vaglib and/or lvga256 is specified.hrs2011-07-173-1/+31 * Add print/tex-mfpic, a scheme for producing pictures from (La)TeX commands.hrs2011-07-175-0/+72 * Add print/latex-chapterfolder, a LaTeX package that simplifies working withhrs2011-07-175-0/+81 * Fix build with clangcrees2011-07-111-0/+3 * - Update print/hs-hscolour to 1.19ashish2011-07-104-8/+6 * - Update to 1.2.16nivit2011-07-082-6/+6 * Fix permission in the font file directory.hrs2011-07-071-0/+3 * Update to 3.11.5makc2011-07-054-30/+30 * - Reassign to the heaptabthorpe2011-07-052-2/+2 * Remove print/lyx-devel in favour of print/lyxmakc2011-07-055-1700/+0 * Connect lyx16, disconnect lyx-develmakc2011-07-051-1/+1 * Update to 2.0.0makc2011-07-054-30/+382 * Fix typo in USE_BZIP2 and really use bzipped tarball.makc2011-07-053-10/+12 * - Pass maintainership to submitterwen2011-07-041-1/+1 * - Deprecate ports that don't work with Ruby 1.9 (volunteers welcome)swills2011-07-041-0/+3 * Apache PDFBox is an open source Java PDF library for working with PDFwen2011-07-034-0/+68 * - Kick MD5 Supportmiwi2011-07-03234-431/+0 * - Update to 2.91miwi2011-07-032-3/+3 * - Update to 1.6.10beech2011-06-298-10/+34 * Fix build in the case that $KERNCONF has multiple configuration files.hrs2011-06-271-1/+6 * - Update MASTER_SITESmiwi2011-06-253-3/+2 * - Update to 20110609acm2011-06-2513-121/+160 * - Update to 4.0.7acm2011-06-252-6/+4 * - Update to 5.9.23.araujo2011-06-252-3/+3 * - Removing remaining MD5 from rubygem- portspgollucci2011-06-244-4/+0 * - Cannoicalize the WWW: [again],pgollucci2011-06-244-4/+4 * Kill EOL whitespace.danfe2011-06-231-1/+1 * - Fix build when CC=clang.hrs2011-06-2112-19/+142 * Update CONFLICTS lines.hrs2011-06-214-10/+12 * . Update to 3.2.5d.glewis2011-06-184-23/+9 * Last bunch of deprecation: no more public distfiles and/or abandonware... las...bapt2011-06-171-0/+3 * Mark broken some ports with unfetchable distfilesbapt2011-06-171-0/+2 * - Changed installation directories.stephen2011-06-172-29/+16 * - Add print/latex-ltablex: Combines the features of both the tabularx andstephen2011-06-164-0/+75 * - Rename print/cmpsfont and print/amspsfnt with print/font-amsfonts andhrs2011-06-1517-750/+752 * - Update to 2.14.1gahr2011-06-142-5/+5 * Remove old texinfo bits. This should solve conflicts with print/texinfo.hrs2011-06-134-28/+14 * - Remove CONFLICT entry (conflicting files to be removed from teTeX-base)johans2011-06-132-27/+25 * Hello Mono 2.10!romain2011-06-135-6/+34 * - Update to 1.9.57sunpoet2011-06-112-3/+3 * - Update texinfo.tex and texi2dvi files to latest version (May 2011)johans2011-06-112-8/+20 * Remove MD5 sum.hrs2011-06-111-1/+0 * - Fix CONFLICTS.hrs2011-06-111-7/+6 * Fix an issue that the bbox device was not built.hrs2011-06-102-5/+6 * - Fix build when WITHOUT_X11=yes.hrs2011-06-105-5/+47 * Update my e-mail to my FreeBSD one.jlaffaye2011-06-092-2/+2 * - Add print/ghostscript9-nox11.hrs2011-06-072-0/+13 * Use MASTER_SITE_LOCAL for the distfile.hrs2011-06-072-6/+6 * - Update to 1.9.56sunpoet2011-06-072-3/+3 * Chase security/gnutls update and add an UPDATING entry.novel2011-06-061-2/+2 * Fix the build with no Internet access by add textproc/docbook-sk buildmezz2011-06-051-1/+2 * - Update to 2.13.63gahr2011-05-312-3/+3 * - Update to 2.13.62gahr2011-05-303-5/+5 * Update to Adobe Reader 9.4.2 and add a hack to mitigate "RSException" crashhrs2011-05-307-35/+62 * Bump PORTREVISION of all ports dependent on lang/ghc as duringashish2011-05-262-0/+2 * Fix pkg-plist.hrs2011-05-262-1/+3 * Fix cmpsfont dependency.ale2011-05-251-2/+2 * Catch up with the re-rolled distfile.hrs2011-05-253-8/+6 * Add print/ghostscript9, an interpreter of PostScript and PDF pagehrs2011-05-2437-0/+2623 * - Fix a problem when opening a PDF file.hrs2011-05-243-2/+13 * - Remove empty patches files.jadawin2011-05-231-0/+0 * Correct dependency on libcups.makc2011-05-201-1/+1 * - Cleaning MD5 in perl@'s portsjadawin2011-05-173-3/+0 * Miscellaneous cleanups and fixes, some of the windowmaker stuffdougb2011-05-162-2/+2 * - fix build with clangdinoex2011-05-121-0/+1 * - bump PORTREVISIONdinoex2011-05-121-1/+1 * PR: 156866dinoex2011-05-122-7/+9 * - Please welcome GHC 7.0.3ashish2011-05-095-45/+12 * - Update to 0.6.0wen2011-05-053-3/+6 * Update to 3.7.2bf2011-05-035-26/+14 * Bump PORTREVISION after open-mofit updatemakc2011-05-0218-16/+18 * - Update to 2.13.61gahr2011-05-022-3/+3 * Remove unmaintained expired ports from printbapt2011-05-0285-2173/+0 * Update to 20110427 snapshot.ale2011-04-272-4/+5 * - Explicitely use base flex and yacc: the port breaks when bisongahr2011-04-201-1/+3 * Restore PORTEPOCH that was lost in rev 1.9erwin2011-04-201-0/+1 * - Update to 2.13.60gahr2011-04-183-3/+4 * - Mark broken with Ruby 1.9swills2011-04-111-1/+5 * - Update to 4.0.7acm2011-04-082-4/+3 * - drop MD5dinoex2011-04-081-1/+0 * - Update to 2.13.58gahr2011-04-072-3/+3 * - Update to 2.13.57gahr2011-04-052-3/+3 * - Remove superfluous patchesmva2011-04-032-21/+0 * - Update to 0.4.5mva2011-04-033-9/+7 * Add patch to fix build. (bad imake target)nox2011-04-022-2/+11 * - Update to 2.13.56gahr2011-04-012-7/+4 * - Update to 2.5.1dhn2011-03-302-5/+6 * - Update to 2.13.55gahr2011-03-293-73/+16 * - Update to 0.5.6wen2011-03-282-3/+3 * Remove addition of CPPFLAGS to CONFIGURE_ENVbf2011-03-264-6/+1 * The FreeBSD KDE Team is pleased to announce KDE SC 4.6.1 and KDE PIMavilla2011-03-252-2/+0 * - Update to 1.9.55sunpoet2011-03-242-4/+4 * Update to 3.11.3makc2011-03-243-5/+17 * - Add LICENSE knob(s)mm2011-03-232-1/+3 * - Update MASTER_SITES/WWWdhn2011-03-233-8/+5 * - Update to 2.4.4dhn2011-03-232-4/+3 * - Update to version 5.3.4dhn2011-03-238-139/+22 * - Fix WWWdhn2011-03-233-42/+11 * Remove support for FreeBSD 6.X and older.mandree2011-03-221-7/+1 * Join the party, remove MD5 from the last of my portsdougb2011-03-211-1/+0 * - Fix PLIST issues with RUBY_VER == 1.9swills2011-03-191-1/+1 * - Update to 2.88miwi2011-03-182-3/+3 * - Update to 2.0.0 RC1miwi2011-03-183-4/+6 * - Bump PORTREVISION to advertise recent plist fixpav2011-03-181-1/+1 * - fix option WITH_PAMdinoex2011-03-161-2/+2 * - Use ?= for PS so that slaves can override its valuerafan2011-03-161-2/+2 * - Update to 2.13.54gahr2011-03-153-6/+5 * - Generate the *.pyo files and add in the plist, so that the *.pyo files won'tmezz2011-03-153-3/+11 * Deprecate unmaintained ports from print where upstream disapear and/orbapt2011-03-1420-0/+60 * Update MASTER_SITEbapt2011-03-142-2/+1 * - Move CONFLICTS definition to slave ports itself instead of making it inrafan2011-03-134-11/+12 * - Update to 2.13.53gahr2011-03-083-5/+6 * - fix build with lang/gcc45dinoex2011-03-081-0/+3 * - preserve modified etc/pam.d/cupsdinoex2011-03-083-1/+25 * New port: print/latex-acmrea2011-03-044-0/+72 * - Update to 20110222miwi2011-03-043-10/+10