aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2019-03-12 12:53:27 +0100
committerMax <msuraev@sysmocom.de>2019-03-19 15:05:51 +0000
commitf4d3973688a0d07cadb9e1f3529712b5e50624ea (patch)
treeca2c6d33756aba807504c275d002fc664e1b167f /src
parent0fb91b736c3a3219fb018b4841f18ef164519f73 (diff)
MS store: move test helper to unit test
It's confusing to have test-specific helper with the same name as tested function directly inside the GprsMsStorage class. Let's convert it into static function and move to the unit test. Change-Id: Ia2a5b90779051af894fe15d957c1d26f0a142f33
Diffstat (limited to 'src')
-rw-r--r--src/gprs_ms_storage.cpp17
-rw-r--r--src/gprs_ms_storage.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/src/gprs_ms_storage.cpp b/src/gprs_ms_storage.cpp
index c7de6d30..04518c59 100644
--- a/src/gprs_ms_storage.cpp
+++ b/src/gprs_ms_storage.cpp
@@ -106,20 +106,3 @@ GprsMs *GprsMsStorage::create_ms()
return ms;
}
-
-GprsMs *GprsMsStorage::create_ms(uint32_t tlli, enum gprs_rlcmac_tbf_direction dir)
-{
- GprsMs *ms = get_ms(tlli);
-
- if (ms)
- return ms;
-
- ms = create_ms();
-
- if (dir == GPRS_RLCMAC_UL_TBF)
- ms->set_tlli(tlli);
- else
- ms->confirm_tlli(tlli);
-
- return ms;
-}
diff --git a/src/gprs_ms_storage.h b/src/gprs_ms_storage.h
index 44ad0ed4..14707f5f 100644
--- a/src/gprs_ms_storage.h
+++ b/src/gprs_ms_storage.h
@@ -39,7 +39,6 @@ public:
virtual void ms_active(class GprsMs *);
GprsMs *get_ms(uint32_t tlli, uint32_t old_tlli = 0, const char *imsi = 0) const;
- GprsMs *create_ms(uint32_t tlli, enum gprs_rlcmac_tbf_direction dir);
GprsMs *create_ms();
const LListHead<GprsMs>& ms_list() const {return m_list;}