From 66fdb2a5e2ee2e8b8f0d87494bf1b1fa93d73b48 Mon Sep 17 00:00:00 2001 From: adrian Date: Fri, 9 Dec 2011 15:44:22 +0200 Subject: [PATCH] Remove interface from Nasal --- src/Scripting/NasalSys.cxx | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 936c51537..0134dcb26 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -33,7 +33,6 @@ #include #include #include -#include #include "NasalSys.hxx" @@ -556,27 +555,6 @@ static naRef f_geodinfo(naContext c, naRef me, int argc, naRef* args) #undef HASHSET } -// Expose a radio transmission interface to Nasal. -static naRef f_radioTransmission(naContext c, naRef me, int argc, naRef* args) -{ - double lat, lon, elev, heading, pitch; - if(argc != 5) naRuntimeError(c, "radioTransmission() expects 5 arguments"); - for(int i=0; ireceiveBeacon(geod, heading, pitch); - delete radio; - return naNum(signal); -} - class AirportInfoFilter : public FGAirport::AirportFilter { @@ -827,7 +805,6 @@ static struct { const char* name; naCFunction func; } funcs[] = { { "geodinfo", f_geodinfo }, { "airportinfo", f_airportinfo }, { "navinfo", f_navinfo }, - { "radioTransmission", f_radioTransmission }, { 0, 0 } };