[hamradio-commits] [gnss-sdr] 42/149: Remove unused code

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Sat Feb 6 19:43:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

carles_fernandez-guest pushed a commit to branch next
in repository gnss-sdr.

commit 0a295f9147b469da94072e25fb9336feda60a4f7
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Mon Jan 11 01:02:44 2016 +0100

    Remove unused code
---
 .../telemetry_decoder/libs/convolutional.h         | 59 ----------------------
 1 file changed, 59 deletions(-)

diff --git a/src/algorithms/telemetry_decoder/libs/convolutional.h b/src/algorithms/telemetry_decoder/libs/convolutional.h
index 4738aef..680f4c7 100644
--- a/src/algorithms/telemetry_decoder/libs/convolutional.h
+++ b/src/algorithms/telemetry_decoder/libs/convolutional.h
@@ -46,28 +46,6 @@
 /* define constants used throughout the library */
 const float MAXLOG = 1e7;  /* Define infinity */
 
-/*!
- * \brief Converts an integer symbol into a vector of bits
- *
- * \param[out] binvec_p The binary vector
- * \param[in] symbol  The integer-valued symbol
- * \param[in] length  The length of the binary vector
- *
- * This function is used by conv_encode()
- */
-static void itob(int binvec_p[], int symbol, int length)
-{
-    int counter;
-    /* Go through each bit in the vector */
-    for (counter = 0; counter < length; counter++)
-        {
-            binvec_p[length - counter - 1] = (symbol & 1);
-            symbol = symbol >> 1;
-        }
-    return;
-}
-
-
 
 /*!
  * \brief Determines if a symbol has odd (1) or even (0) parity
@@ -137,42 +115,6 @@ static int nsc_enc_bit(int state_out_p[],
 
 
 /*!
- * \brief  like nsc_enc_bit() but for a RSC code
- */
-static int rsc_enc_bit(int state_out_p[],
-                       int input,
-                       int state_in,
-                       int g[],
-                       int KK,
-                       int nn)
-{
-    /* declare variables */
-    int state, i, out_, a_k;
-
-    /* systematic output */
-    out_ = input;
-
-    /* determine feedback bit */
-    a_k = input^parity_counter(g[0]&state_in, KK);
-
-    /* create a word made up of state and feedback bit */
-    state = (a_k << (KK - 1))^state_in;
-
-    /* AND the word with the generators */
-    for (i = 1; i < nn; i++)
-        {
-            /* update output symbol */
-            out_ = (out_ << 1) + parity_counter(state & g[i], KK);
-        }
-
-    /* shift the state to make the new state */
-    state_out_p[0] = state >> 1;
-    return(out_);
-}
-
-
-
-/*!
  * \brief Function that creates the transit and output vectors
  */
 static void nsc_transit(int output_p[],
@@ -204,7 +146,6 @@ static void nsc_transit(int output_p[],
  *  \param[in] symbol        The hypothetical symbol
  *  \param[in] nn            The length of the received vector
  *
- * This function is used by siso()
  */
 static float Gamma(float  rec_array[],
                    int symbol,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git



More information about the pkg-hamradio-commits mailing list