Skip to content

Commit

Permalink
Remove XCSV_ENABLED, MAXIMAL_ENABLED, MINIMAL_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlipe committed Nov 20, 2023
1 parent 6357264 commit 0a19f0b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 39 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,8 @@ list(SORT HEADERS)
target_sources(gpsbabel PRIVATE ${SOURCES} ${HEADERS})

# We don't care about stripping things out of the build. Full monty, baby.
target_compile_definitions(gpsbabel PRIVATE MAXIMAL_ENABLED)
target_compile_definitions(gpsbabel PRIVATE FILTERS_ENABLED)
target_compile_definitions(gpsbabel PRIVATE SHAPELIB_ENABLED)
target_compile_definitions(gpsbabel PRIVATE CSVFMTS_ENABLED)

target_link_libraries(gpsbabel PRIVATE ${QT_LIBRARIES} ${LIBS})

Expand Down
3 changes: 0 additions & 3 deletions garmin_txt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include "defs.h"

#if CSVFMTS_ENABLED
#include <algorithm> // for sort
#include <cctype> // for toupper
#include <cmath> // for fabs, floor
Expand Down Expand Up @@ -1433,5 +1432,3 @@ ff_vecs_t garmin_txt_vecs = {
&garmin_txt_args,
NULL_POS_OPS
};

#endif // CSVFMTS_ENABLED
4 changes: 0 additions & 4 deletions main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ print_extended_info()
"FILTERS_ENABLED "
#endif

#if CSVFMTS_ENABLED
"CSVFMTS_ENABLED "
#endif

#if SHAPELIB_ENABLED
"SHAPELIB_ENABLED "
#endif
Expand Down
24 changes: 0 additions & 24 deletions vecs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
extern ff_vecs_t geo_vecs;
extern ff_vecs_t garmin_vecs;
extern ff_vecs_t ozi_vecs;
#if MAXIMAL_ENABLED
extern ff_vecs_t holux_vecs;
extern ff_vecs_t tpg_vecs;
extern ff_vecs_t tpo2_vecs;
Expand All @@ -85,23 +84,18 @@ extern ff_vecs_t mtk_vecs;
extern ff_vecs_t mtk_fvecs;
extern ff_vecs_t mtk_m241_vecs;
extern ff_vecs_t mtk_m241_fvecs;
#endif // MAXIMAL_ENABLED
extern ff_vecs_t wbt_svecs;
#if MAXIMAL_ENABLED
extern ff_vecs_t wbt_fvecs;
//extern ff_vecs_t wbt_fvecs;
extern ff_vecs_t vcf_vecs;
extern ff_vecs_t gtm_vecs;
#if CSVFMTS_ENABLED
extern ff_vecs_t garmin_txt_vecs;
#endif // CSVFMTS_ENABLED
extern ff_vecs_t ggv_log_vecs;
extern ff_vecs_t navilink_vecs;
extern ff_vecs_t sbp_vecs;
extern ff_vecs_t sbn_vecs;
extern ff_vecs_t v900_vecs;
extern ff_vecs_t format_garmin_xt_vecs;
#endif // MAXIMAL_ENABLED

#define MYNAME "vecs"

Expand All @@ -126,7 +120,6 @@ struct Vecs::Impl {
NmeaFormat nmea_fmt;
LegacyFormat ozi_fmt {ozi_vecs};
KmlFormat kml_fmt;
#if MAXIMAL_ENABLED
LowranceusrFormat lowranceusr_fmt;
LegacyFormat holux_fmt {holux_vecs};
LegacyFormat tpg_fmt {tpg_vecs};
Expand All @@ -143,17 +136,13 @@ struct Vecs::Impl {
LegacyFormat mtk_ffmt {mtk_fvecs};
LegacyFormat mtk_m241_fmt {mtk_m241_vecs};
LegacyFormat mtk_m241_ffmt {mtk_m241_fvecs};
#endif // MAXIMAL_ENABLED
LegacyFormat wbt_sfmt {wbt_svecs};
#if MAXIMAL_ENABLED
LegacyFormat wbt_ffmt {wbt_fvecs};
//LegacyFormat wbt_ffmt {wbt_fvecs};
LegacyFormat vcf_fmt {vcf_vecs};
UnicsvFormat unicsv_fmt;
LegacyFormat gtm_fmt {gtm_vecs};
#if CSVFMTS_ENABLED
LegacyFormat garmin_txt_fmt {garmin_txt_vecs};
#endif // CSVFMTS_ENABLED
GtrnctrFormat gtc_fmt;
GarminGPIFormat garmin_gpi_fmt;
RandomFormat random_fmt;
Expand All @@ -178,10 +167,8 @@ struct Vecs::Impl {
GeoJsonFormat geojson_fmt;
GlobalsatSportFormat globalsat_sport_fmt;
QstarzBL1000Format qstarz_bl_1000_fmt;
#endif // MAXIMAL_ENABLED

const QVector<vecs_t> vec_list {
#if CSVFMTS_ENABLED
/* XCSV must be the first entry in this table. */
{
nullptr,
Expand All @@ -191,7 +178,6 @@ struct Vecs::Impl {
nullptr,
&fmtfactory<XcsvFormat>
},
#endif
{
nullptr,
"geo",
Expand Down Expand Up @@ -242,7 +228,6 @@ struct Vecs::Impl {
"kml",
nullptr,
},
#if MAXIMAL_ENABLED
{
&lowranceusr_fmt,
"lowranceusr",
Expand Down Expand Up @@ -343,15 +328,13 @@ struct Vecs::Impl {
"bin",
nullptr,
},
#endif // MAXIMAL_ENABLED
{
&wbt_sfmt,
"wbt",
"Wintec WBT-100/200 GPS Download",
nullptr,
nullptr,
},
#if MAXIMAL_ENABLED
{
&wbt_ffmt,
"wbt-bin",
Expand Down Expand Up @@ -387,15 +370,13 @@ struct Vecs::Impl {
"gtm",
nullptr,
},
#if CSVFMTS_ENABLED
{
&garmin_txt_fmt,
"garmin_txt",
"Garmin MapSource - txt (tab delimited)",
"txt",
nullptr,
},
#endif // CSVFMTS_ENABLED
{
&gtc_fmt,
"gtrnctr",
Expand Down Expand Up @@ -564,7 +545,6 @@ struct Vecs::Impl {
nullptr,
nullptr,
}
#endif // MAXIMAL_ENABLED
};
};

Expand Down Expand Up @@ -842,7 +822,6 @@ void Vecs::prepare_format(const fmtinfo_t& fmtdata)
disp_vec_options(fmtdata.fmtname, args);
}

#if CSVFMTS_ENABLED
/*
* For style based formats let xcsv know the style file. Otherwise
* make sure xcsv knows no style file is in use. This covers the case
Expand All @@ -853,7 +832,6 @@ void Vecs::prepare_format(const fmtinfo_t& fmtdata)
if (xcsvfmt != nullptr) {
xcsvfmt->xcsv_setup_internal_style(fmtdata.style_filename);
}
#endif // CSVFMTS_ENABLED
}

Vecs::fmtinfo_t Vecs::find_vec(const QString& fmtargstring)
Expand Down Expand Up @@ -982,7 +960,6 @@ QVector<Vecs::vecinfo_t> Vecs::sort_and_unify_vecs() const
}
}

#if CSVFMTS_ENABLED
/* The style formats are based on the xcsv format,
* Make sure we know which entry in the vector list that is.
*/
Expand Down Expand Up @@ -1040,7 +1017,6 @@ QVector<Vecs::vecinfo_t> Vecs::sort_and_unify_vecs() const
if (d_ptr_->vec_list.at(0).factory != nullptr) {
delete xcsvfmt;
}
#endif // CSVFMTS_ENABLED

/*
* Display the available formats in a format that's easy for humans to
Expand Down
3 changes: 0 additions & 3 deletions xcsv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
#include "strptime.h" // for strptime


#if CSVFMTS_ENABLED

#define MYNAME "XCSV"

const QHash<QString, XcsvStyle::xcsv_token> XcsvStyle::xcsv_tokens {
Expand Down Expand Up @@ -2007,4 +2005,3 @@ XcsvFormat::wr_position(Waypoint* wpt)

xcsv_file->stream.flush();
}
#endif //CSVFMTS_ENABLED
3 changes: 0 additions & 3 deletions xcsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
#include "src/core/datetime.h" // for DateTime
#include "src/core/textstream.h" // for TextStream

#if CSVFMTS_ENABLED

/*
* Class describing an xcsv format.
*/
Expand Down Expand Up @@ -432,5 +430,4 @@ class XcsvFormat : public Format

};

#endif // CSVFMTS_ENABLED
#endif // XCSV_H_INCLUDED_

0 comments on commit 0a19f0b

Please sign in to comment.