[MERGED] libosmocore[master]: osmo-sim-test.c: Remove unused functions

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/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Jun 22 18:14:20 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: osmo-sim-test.c: Remove unused functions
......................................................................


osmo-sim-test.c: Remove unused functions

Change-Id: I3060cfee8ece86c4c89a65f93c9f5424df0c410b
---
M utils/osmo-sim-test.c
1 file changed, 0 insertions(+), 37 deletions(-)

Approvals:
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Neels Hofmeyr: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/utils/osmo-sim-test.c b/utils/osmo-sim-test.c
index d5e932e..ea24120 100644
--- a/utils/osmo-sim-test.c
+++ b/utils/osmo-sim-test.c
@@ -91,22 +91,6 @@
 	return msg;
 }
 
-/* 11.1.6 */
-static struct msgb *update_record_nr(struct osim_chan_hdl *st, uint8_t rec_nr,
-				     const uint8_t *data, uint16_t rec_size)
-{
-	struct msgb *msg;
-	uint8_t *cur;
-
-	msg = osim_new_apdumsg(0x00, 0xDC, rec_nr, 0x04, rec_size, 0);
-	cur = msgb_put(msg, rec_size);
-	memcpy(cur, data, rec_size);
-
-	osim_transceive_apdu(st, msg);
-
-	return msg;
-}
-
 /* 11.1.3 */
 static struct msgb *read_binary(struct osim_chan_hdl *st, uint16_t offset, uint16_t len)
 {
@@ -121,27 +105,6 @@
 
 	return msg;
 }
-
-/* 11.1.4 */
-static struct msgb *update_binary(struct osim_chan_hdl *st, uint16_t offset,
-				  const uint8_t *data, uint16_t len)
-{
-	struct msgb *msg;
-	uint8_t *cur;
-
-	if (offset > 0x7fff || len > 256)
-		return NULL;
-
-	msg = osim_new_apdumsg(0x00, 0xD6, offset >> 8, offset & 0xff, len & 0xff, 0);
-	cur = msgb_put(msg, len);
-	memcpy(cur, data, len);
-
-	osim_transceive_apdu(st, msg);
-
-	return msg;
-}
-
-
 
 static int dump_fcp_template(struct tlv_parsed *tp)
 {

-- 
To view, visit https://gerrit.osmocom.org/2957
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3060cfee8ece86c4c89a65f93c9f5424df0c410b
Gerrit-PatchSet: 5
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list