From 7a06434928db968f73f9ca2351a2bba63d91cfdc Mon Sep 17 00:00:00 2001 From: Marc Majoral Date: Fri, 12 Apr 2019 15:16:31 +0200 Subject: [PATCH] removed unnecessary function in fpga_acquisition class --- .../acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc | 6 +----- src/algorithms/acquisition/libs/fpga_acquisition.cc | 6 ------ src/algorithms/acquisition/libs/fpga_acquisition.h | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc index bd7bc802c..421652353 100644 --- a/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc +++ b/src/algorithms/acquisition/gnuradio_blocks/pcps_acquisition_fpga.cc @@ -85,11 +85,7 @@ pcps_acquisition_fpga::pcps_acquisition_fpga(pcpsconf_fpga_t conf_) } -pcps_acquisition_fpga::~pcps_acquisition_fpga() -{ - acquisition_fpga->free(); -} - +pcps_acquisition_fpga::~pcps_acquisition_fpga() = default; void pcps_acquisition_fpga::set_local_code() { diff --git a/src/algorithms/acquisition/libs/fpga_acquisition.cc b/src/algorithms/acquisition/libs/fpga_acquisition.cc index 7486f4edb..ed2096d70 100644 --- a/src/algorithms/acquisition/libs/fpga_acquisition.cc +++ b/src/algorithms/acquisition/libs/fpga_acquisition.cc @@ -151,12 +151,6 @@ void Fpga_Acquisition::open_device() } -bool Fpga_Acquisition::free() -{ - return true; -} - - void Fpga_Acquisition::fpga_acquisition_test_register() { // sanity check : check test register diff --git a/src/algorithms/acquisition/libs/fpga_acquisition.h b/src/algorithms/acquisition/libs/fpga_acquisition.h index 2ee00e315..805297bd3 100644 --- a/src/algorithms/acquisition/libs/fpga_acquisition.h +++ b/src/algorithms/acquisition/libs/fpga_acquisition.h @@ -58,7 +58,6 @@ public: ~Fpga_Acquisition(); bool set_local_code(uint32_t PRN); - bool free(); void set_doppler_sweep(uint32_t num_sweeps, uint32_t doppler_step, int32_t doppler_min); void run_acquisition(void);