remove unneeded code
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 22 Dec 2005 09:57:30 +0000 (09:57 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 22 Dec 2005 09:57:30 +0000 (09:57 +0000)
lib/dvb/sec.cpp

index d76b40b6640c79402bd9f8be3e84471092a371f7..459e0c4fb5dd746de8e693d8714521364f9e3345 100644 (file)
@@ -475,10 +475,6 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
                                                eDebug("Entry for %d,%d? not in Rotor Table found... i try gotoXX?", sat.orbital_position / 10, sat.orbital_position % 10 );
                                                useGotoXX = true;
 
-                                               int satDir = sat.orbital_position < 0 ?
-                                                       eDVBSatelliteRotorParameters::WEST :
-                                                       eDVBSatelliteRotorParameters::EAST;
-
                                                double  SatLon = abs(sat.orbital_position)/10.00,
                                                                SiteLat = rotor_param.m_gotoxx_parameters.m_latitude,
                                                                SiteLon = rotor_param.m_gotoxx_parameters.m_longitude;
@@ -489,9 +485,6 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
                                                if ( rotor_param.m_gotoxx_parameters.m_lo_direction == eDVBSatelliteRotorParameters::WEST )
                                                        SiteLon = 360 - SiteLon;
 
-                                               if (satDir == eDVBSatelliteRotorParameters::WEST )
-                                                       SatLon = 360 - SatLon;
-
                                                eDebug("siteLatitude = %lf, siteLongitude = %lf, %lf degrees", SiteLat, SiteLon, SatLon );
                                                double satHourAngle =
                                                        calcSatHourangle( SatLon, SiteLat, SiteLon );