summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-01-19 22:06:40 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-01-19 22:06:40 +0000
commitabfc6299a59fdf420f9881d22bd54bb907851aa2 (patch)
treebcfe158d234ed3ea03e391e2910f8f3046df19ae
parent4d2fbb46ddb2269edcdb17d931e5a373290bb876 (diff)
downloadnavit-abfc6299a59fdf420f9881d22bd54bb907851aa2.tar.gz
Refactor:binding_dbus:Remove unused (and wrong) code, add missing #include.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5999 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/binding/dbus/binding_dbus.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/navit/binding/dbus/binding_dbus.c b/navit/binding/dbus/binding_dbus.c
index 3244bd69c..b701d4954 100644
--- a/navit/binding/dbus/binding_dbus.c
+++ b/navit/binding/dbus/binding_dbus.c
@@ -50,6 +50,7 @@
#include "layout.h"
#include "roadprofile.h"
#include "util.h"
+#include "transform.h"
static DBusConnection *connection;
@@ -1299,7 +1300,6 @@ static DBusHandlerResult
request_navit_route_export_gpx(DBusConnection *connection, DBusMessage *message)
{
char * filename;
- struct point p, *pp=NULL;
struct navit *navit;
DBusMessageIter iter;
@@ -1311,14 +1311,6 @@ request_navit_route_export_gpx(DBusConnection *connection, DBusMessage *message)
dbus_message_iter_get_basic(&iter, &filename);
- if (dbus_message_iter_has_next(&iter))
- {
- dbus_message_iter_next(&iter);
- if (!point_get_from_message(message, &iter, &p))
- return dbus_error_invalid_parameter(connection, message);
- pp=&p;
- }
-
struct navigation *nav = navit_get_navigation(navit);
if(!nav) {
return dbus_error_navigation_not_configured(connection, message);
@@ -1329,10 +1321,9 @@ request_navit_route_export_gpx(DBusConnection *connection, DBusMessage *message)
struct map * map=NULL;
struct map_rect * mr=NULL;
struct item *item = NULL;
- struct attr attr,route;
+ struct attr attr;
struct coord c;
struct coord_geo g;
- struct transformation *trans;
char *header = "<?xml version='1.0' encoding='UTF-8'?>\n"
"<gpx version='1.1' creator='Navit http://navit.sourceforge.net'\n"
@@ -1346,7 +1337,6 @@ request_navit_route_export_gpx(DBusConnection *connection, DBusMessage *message)
map = navigation_get_map(nav);
if(map)
mr = map_rect_new(map,NULL);
- trans = navit_get_trans (nav);
FILE *fp;
fp = fopen(filename,"w");