1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-23 13:33:15 +00:00

Remove logically dead code

This commit is contained in:
Carles Fernandez 2019-08-16 20:18:49 +02:00
parent b956a28a0f
commit 84f944d7fa
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
4 changed files with 4 additions and 20 deletions

View File

@ -284,11 +284,7 @@ int64_t Beidou_Dnav_Navigation_Message::read_navigation_signed(
{
value &= 0;
}
// Avoid saturation when decoding
if (value == std::numeric_limits<int64_t>::max() or value == std::numeric_limits<int64_t>::min())
{
value /= 2;
}
for (int32_t i = 0; i < num_of_slices; i++)
{
for (int32_t j = 0; j < parameter[i].second; j++)

View File

@ -311,11 +311,7 @@ int64_t Galileo_Navigation_Message::read_navigation_signed(std::bitset<GALILEO_D
{
value &= 0LL;
}
// Avoid saturation when decoding
if (value == std::numeric_limits<int64_t>::max() or value == std::numeric_limits<int64_t>::min())
{
value /= 2;
}
for (int32_t i = 0; i < num_of_slices; i++)
{
for (int32_t j = 0; j < parameter[i].second; j++)

View File

@ -122,11 +122,7 @@ int64_t Gps_CNAV_Navigation_Message::read_navigation_signed(std::bitset<GPS_CNAV
{
value &= 0LL;
}
// Avoid saturation when decoding
if (value == std::numeric_limits<int64_t>::max() or value == std::numeric_limits<int64_t>::min())
{
value /= 2;
}
for (int32_t i = 0; i < num_of_slices; i++)
{
for (int32_t j = 0; j < parameter[i].second; j++)

View File

@ -212,11 +212,7 @@ int64_t Gps_Navigation_Message::read_navigation_signed(std::bitset<GPS_SUBFRAME_
{
value &= 0LL;
}
// Avoid salutation when decoding;
if (value == std::numeric_limits<int64_t>::max() or value == std::numeric_limits<int64_t>::min())
{
value /= 2;
}
for (int32_t i = 0; i < num_of_slices; i++)
{
for (int32_t j = 0; j < parameter[i].second; j++)