[PATCH 2/9] csn1: Remove unused code from the file

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-net-gprs@lists.osmocom.org/.

Holger Hans Peter Freyther hfreyther at sysmocom.de
Tue Jul 30 19:26:40 UTC 2013


From: Holger Hans Peter Freyther <holger at moiji-mobile.com>

Fixes:
csn1.cpp:124:20: warning: 'CSN_DESCR_type' defined but not used [-Wunused-variable]
---
 src/csn1.cpp | 38 --------------------------------------
 1 file changed, 38 deletions(-)

diff --git a/src/csn1.cpp b/src/csn1.cpp
index 38d8860..de1db73 100644
--- a/src/csn1.cpp
+++ b/src/csn1.cpp
@@ -118,44 +118,6 @@ ProcessError( unsigned readIndex, const char* sz, gint16 err, const CSN_DESCR* p
   return err;
 }
 
-//#if 0
-static const char* CSN_DESCR_type[]=
-{
-  "CSN_END",
-  "CSN_BIT",
-  "CSN_UINT",
-  "CSN_TYPE",
-  "CSN_CHOICE",
-  "CSN_UNION",
-  "CSN_UNION_LH",
-  "CSN_UINT_ARRAY",
-  "CSN_TYPE_ARRAY",
-  "CSN_BITMAP",
-  "CSN_VARIABLE_BITMAP",
-  "CSN_VARIABLE_BITMAP_1",
-  "CSN_LEFT_ALIGNED_VAR_BMP",
-  "CSN_LEFT_ALIGNED_VAR_BMP_1",
-  "CSN_VARIABLE_ARRAY",
-  "CSN_VARIABLE_TARRAY",
-  "CSN_VARIABLE_TARRAY_OFFSET",
-  "CSN_RECURSIVE_ARRAY",
-  "CSN_RECURSIVE_TARRAY",
-  "CSN_RECURSIVE_TARRAY_1",
-  "CSN_RECURSIVE_TARRAY_2",
-  "CSN_EXIST",
-  "CSN_EXIST_LH",
-  "CSN_NEXT_EXIST",
-  "CSN_NEXT_EXIST_LH",
-  "CSN_NULL",
-  "CSN_FIXED",
-  "CSN_CALLBACK",
-  "CSN_UINT_OFFSET",
-  "CSN_UINT_LH",
-  "CSN_SERIALIZE",
-  "CSN_TRAP_ERROR"
-  "CSN_???"
-};
-//#endif
 
 /**
  * ================================================================================================
-- 
1.8.3.2





More information about the osmocom-net-gprs mailing list