Skip to content
Snippets Groups Projects
Commit 7ca5e4ca authored by Pep Martí Saumell's avatar Pep Martí Saumell
Browse files

Removed unnecessary commented code

parent 1e53f759
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
......@@ -40,22 +40,10 @@ nav_t & Navigation::getNavigation()
/****************** Array memory management ******************/
void Navigation::allocateEphemeris(int n_sat)
{
eph_t eph0 ={0,-1,-1};
int i;
nav_.eph = (eph_t *) malloc(sizeof(eph_t)*n_sat);
for (i=0;i<n_sat;i++) nav_.eph[i] = eph0;
/*
if (this->_nav->eph)
{
//_nav->eph = (eph_t *)realloc(_nav->eph, 2 * MAXSAT * sizeof(eph_t));
}
else
{
this->_nav->eph = (eph_t *) malloc(2 * MAXSAT * sizeof(eph_t));
}
*/
}
void Navigation::deleteEphemeris()
{
......@@ -67,34 +55,10 @@ void Navigation::allocateGLONASSEphemeris(int n_sat)
geph_t geph0={0,-1};
int i;
nav_.geph = (geph_t *)malloc(sizeof(geph_t)*n_sat);
/*
for (i=0;i<NSATGLO ;i++) _nav.geph[i] = geph0;
if (this->_nav->geph)
{
//_nav->geph = (geph_t *)realloc(_nav->geph, NSATGLO * sizeof(geph_t));
}
else
{
this->_nav->geph = (geph_t *) malloc(2 * NSATGLO * sizeof(geph_t));
}
*/
}
void Navigation::deleteGLONASSEphemeris()
{
free(nav_.geph);
// if (_nav->geph)
// {
// free(_nav->geph);
// }
//
// else
// {
// // Do nothing
// }
//
}
void Navigation::allocateSBASEphemeris(int n_sat)
......@@ -104,30 +68,10 @@ void Navigation::allocateSBASEphemeris(int n_sat)
nav_.seph = (seph_t *)malloc(sizeof(seph_t)*n_sat);
for (i=0; i<n_sat; i++) nav_.seph[i] = seph0;
/*
if (this->_nav->seph)
{
//_nav->seph = (seph_t *)realloc(_nav->seph, NSATSBS * sizeof(seph_t));
}
else
{
this->_nav->seph = (seph_t *) malloc(2 * NSATSBS * sizeof(seph_t));
}
*/
}
void Navigation::deleteSBASEphemeris()
{
free(nav_.seph);
// if (_nav->seph)
// {
// free(_nav->seph);
// }
//
// else
// {
// // Do nothing
// }
}
void Navigation::allocateAlmanac(int n_sat)
......@@ -137,29 +81,8 @@ void Navigation::allocateAlmanac(int n_sat)
nav_.alm = (alm_t *)malloc(sizeof(alm_t)*n_sat);
for (i=0; i<n_sat; i++) nav_.alm[i] = alm0;
/*
if (this->_nav->alm)
{
//_nav->alm = (alm_t *)realloc(_nav->alm, MAXSAT * sizeof(alm_t));
}
else
{
this->_nav->alm = (alm_t *) malloc(2 * MAXSAT * sizeof(alm_t));
}
*/
}
void Navigation::deleteAlmanac()
{
free(nav_.alm);
// if (_nav->alm)
// {
// free(_nav->alm);
// }
//
// else
// {
// // Do nothing
// }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment