summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
authorTom2009-12-20 15:41:17 -0500
committerTom2009-12-20 15:41:17 -0500
commit78809d52b0d28d4f8bb4aaecfe4115312b0e9ce5 (patch)
treeda47f32cfa02bb343d773062ba9258222775ead5 /gnuradio-core/src/lib/general
parent8cc51ce7749e5c5562d208a8efaf17828295c70d (diff)
downloadgnuradio-78809d52b0d28d4f8bb4aaecfe4115312b0e9ce5.tar.gz
gnuradio-78809d52b0d28d4f8bb4aaecfe4115312b0e9ce5.tar.bz2
gnuradio-78809d52b0d28d4f8bb4aaecfe4115312b0e9ce5.zip
Cleaning up functions.
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc14
-rw-r--r--gnuradio-core/src/lib/general/gr_fll_band_edge_cc.h3
2 files changed, 4 insertions, 13 deletions
diff --git a/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc b/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc
index 38d682020..03ce16bd7 100644
--- a/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc
+++ b/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.cc
@@ -122,20 +122,14 @@ gr_fll_band_edge_cc::design_filter(float samps_per_sym, float rolloff, int filte
d_filter_upper = gr_fir_util::create_gr_fir_ccc(vtaps);
d_filter_lower = gr_fir_util::create_gr_fir_ccc(vtaps);
- set_filter_taps(taps_lower, d_filter_lower);
- set_filter_taps(taps_upper, d_filter_upper);
-}
+ d_filter_lower->set_taps(taps_lower);
+ d_filter_upper->set_taps(taps_upper);
-void
-gr_fll_band_edge_cc::set_filter_taps(const std::vector<gr_complex> &taps,
- gr_fir_ccc *filter)
-{
- filter->set_taps(taps);
+ d_updated = true;
// Set the history to ensure enough input items for each filter
- set_history(taps.size()+1);
+ set_history(filter_size+1);
- d_updated = true;
}
void
diff --git a/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.h b/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.h
index 87bf39fd0..584f62610 100644
--- a/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.h
+++ b/gnuradio-core/src/lib/general/gr_fll_band_edge_cc.h
@@ -70,9 +70,6 @@ class gr_fll_band_edge_cc : public gr_sync_block
gr_fll_band_edge_cc(float samps_per_sym, float rolloff,
int filter_size, float alpha, float beta);
- void set_filter_taps (const std::vector<gr_complex> &taps,
- gr_fir_ccc *filter);
-
public:
~gr_fll_band_edge_cc ();