[evolution-couchdb] calendar: Remove unneeded headers



commit bf6629a7f05051762acca93ce84dec596597d557
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Fri Jun 17 17:50:55 2011 +0200

    calendar: Remove unneeded headers

 calendar/e-cal-backend-couchdb.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/calendar/e-cal-backend-couchdb.c b/calendar/e-cal-backend-couchdb.c
index e43de7c..2c92323 100644
--- a/calendar/e-cal-backend-couchdb.c
+++ b/calendar/e-cal-backend-couchdb.c
@@ -17,6 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  * Authors: Miguel Angel Rodelas Delgado <miguel rodelas gmail com>
+ *          Rodrigo Moya <rodrigo moya canonical com>
  */
 
 #include <string.h>
@@ -25,8 +26,6 @@
 #include <libedata-cal/e-cal-backend-sexp.h>
 #include <libedata-cal/e-data-cal.h>
 #include <libedata-cal/e-data-cal-view.h>
-#include <dbus/dbus-glib.h>
-#include <gnome-keyring.h>
 
 #define COUCHDB_REVISION_PROP                "X-COUCHDB-REVISION"
 #define COUCHDB_UUID_PROP                    "X-COUCHDB-UUID"
@@ -72,12 +71,15 @@ task_from_couch_document (CouchdbDocument *document)
 	// Fill in the ECalComponent with the data from the CouchDBDocument
 	task = e_cal_component_new ();
 	e_cal_component_set_new_vtype (task, E_CAL_COMPONENT_TODO);
+
+	uid = couchdb_document_get_id (document);
+	e_cal_component_set_uid (task, uid);
+
+	/* Set task summary */
 	summary.value = (const gchar *) couchdb_document_task_get_summary (COUCHDB_DOCUMENT_TASK (document));
 	summary.altrep = NULL;
-	uid = couchdb_document_get_id (document);
-	
+
 	e_cal_component_set_summary (task, &summary);
-	e_cal_component_set_uid (task, uid);
 	
 	return task;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]