Skip to content

Commit

Permalink
Eliminate unecessary computations
Browse files Browse the repository at this point in the history
  • Loading branch information
boatbod committed Jan 22, 2019
1 parent 1c90692 commit bbfc20c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions op25/gr-op25_repeater/lib/p25_frame_assembler_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ static const int MAX_IN = 1; // maximum number of input streams
fprintf(stderr, "p25_frame_assembler_impl: do_imbe[%d], do_output[%d], do_audio_output[%d], do_phase2_tdma[%d], do_nocrypt[%d]\n", do_imbe, do_output, do_audio_output, do_phase2_tdma, do_nocrypt);
}

#if 0
void
p25_frame_assembler_impl::forecast(int nof_output_items, gr_vector_int &nof_input_items_reqd)
{
Expand All @@ -115,6 +116,7 @@ p25_frame_assembler_impl::forecast(int nof_output_items, gr_vector_int &nof_inpu
nof_samples_reqd = std::max(nof_samples_reqd, 256);
std::fill(&nof_input_items_reqd[0], &nof_input_items_reqd[nof_inputs], nof_samples_reqd);
}
#endif

int
p25_frame_assembler_impl::general_work (int noutput_items,
Expand Down
2 changes: 2 additions & 0 deletions op25/gr-op25_repeater/lib/p25_frame_assembler_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ namespace gr {
std::deque<int16_t> output_queue;

public:
#if 0
virtual void forecast(int nof_output_items, gr_vector_int &nof_input_items_reqd);
#endif
// Nothing to declare in this block.

public:
Expand Down

0 comments on commit bbfc20c

Please sign in to comment.