mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-07-04 11:02:57 +00:00
Remove unused variable
This commit is contained in:
parent
97f4f24c88
commit
a09f3e138f
@ -104,12 +104,9 @@ HybridPvt::HybridPvt(ConfigurationInterface* configuration,
|
|||||||
|
|
||||||
bool HybridPvt::save_assistance_to_XML()
|
bool HybridPvt::save_assistance_to_XML()
|
||||||
{
|
{
|
||||||
// return variable (true == succeeded)
|
|
||||||
bool ret = false;
|
|
||||||
|
|
||||||
LOG(INFO) << "SUPL: Try to save GPS ephemeris to XML file " << eph_xml_filename_;
|
LOG(INFO) << "SUPL: Try to save GPS ephemeris to XML file " << eph_xml_filename_;
|
||||||
|
|
||||||
std::map<int,Gps_Ephemeris> eph_map = pvt_->get_GPS_L1_ephemeris_map();
|
std::map<int,Gps_Ephemeris> eph_map = pvt_->get_GPS_L1_ephemeris_map();
|
||||||
|
|
||||||
if (eph_map.size() > 0)
|
if (eph_map.size() > 0)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -122,10 +119,10 @@ bool HybridPvt::save_assistance_to_XML()
|
|||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
LOG(ERROR) << e.what();
|
LOG(WARNING) << e.what();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true; // return variable (true == succeeded)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -134,11 +131,13 @@ bool HybridPvt::save_assistance_to_XML()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HybridPvt::~HybridPvt()
|
HybridPvt::~HybridPvt()
|
||||||
{
|
{
|
||||||
save_assistance_to_XML();
|
save_assistance_to_XML();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void HybridPvt::connect(gr::top_block_sptr top_block)
|
void HybridPvt::connect(gr::top_block_sptr top_block)
|
||||||
{
|
{
|
||||||
if(top_block) { /* top_block is not null */};
|
if(top_block) { /* top_block is not null */};
|
||||||
@ -162,6 +161,6 @@ gr::basic_block_sptr HybridPvt::get_left_block()
|
|||||||
|
|
||||||
gr::basic_block_sptr HybridPvt::get_right_block()
|
gr::basic_block_sptr HybridPvt::get_right_block()
|
||||||
{
|
{
|
||||||
return pvt_;
|
return pvt_; // this is a sink, nothing downstream
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user