summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeemu Ikonen <tpikonen@mailbox.org>2021-10-27 13:33:53 +0300
committerZeeshan Ali <zeenix@gmail.com>2021-11-07 20:31:35 +0000
commit8ff08c6b54fe9dfd06d827529aa69b560192f8e6 (patch)
treeaf57aa9d6a774e38c290fba880e5c3aa3bc4b5d7
parent91c9974bc6c44e6b3069533a2f2b889e1025b984 (diff)
location: Remove unused function gclue_location_create_from_nmea
Locations are now created with function gclue_location_create_from_nmeas which accepts multiple NMEA sentences.
-rw-r--r--src/gclue-location.c29
-rw-r--r--src/gclue-location.h5
2 files changed, 0 insertions, 34 deletions
diff --git a/src/gclue-location.c b/src/gclue-location.c
index b150602..819a6b5 100644
--- a/src/gclue-location.c
+++ b/src/gclue-location.c
@@ -703,35 +703,6 @@ out:
}
/**
- * gclue_location_create_from_nmea:
- * @nmea: NMEA sentence
- * @prev_location: Previous location provided from the location source
- * @error: Place-holder for errors.
- *
- * Creates a new #GClueLocation object from a NMEA sentence.
- *
- * Returns: a new #GClueLocation object if it is either GGA or RMC.
- * a %NULL on all other cases and errors. Unref using
- * #g_object_unref() when done with it.
- **/
-GClueLocation *
-gclue_location_create_from_nmea (const char *nmea,
- GClueLocation *prev_location,
- GError **error)
-{
- if (gclue_nmea_is_gga (nmea))
- return gclue_location_create_from_gga (nmea, error);
- if (gclue_nmea_is_rmc (nmea))
- return gclue_location_create_from_rmc (nmea, prev_location, error);
-
- g_set_error_literal (error,
- G_IO_ERROR,
- G_IO_ERROR_INVALID_ARGUMENT,
- "Sentence not valid NMEA GGA or NMEA RMC");
- return NULL;
-}
-
-/**
* gclue_location_create_from_nmeas:
* @nmea: A NULL terminated array NMEA sentence strings
* @prev_location: Previous location provided from the location source
diff --git a/src/gclue-location.h b/src/gclue-location.h
index 083b0f9..0db57ac 100644
--- a/src/gclue-location.h
+++ b/src/gclue-location.h
@@ -139,11 +139,6 @@ GClueLocation *gclue_location_new_full
guint64 timestamp,
const char *description);
-GClueLocation *gclue_location_create_from_nmea
- (const char *nmea,
- GClueLocation *prev_location,
- GError **error);
-
GClueLocation *gclue_location_create_from_nmeas
(const char *nmeas[],
GClueLocation *prev_location,