summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-01-28 16:22:14 +0100
committerLinus Nordberg <linus@nordberg.se>2013-01-28 16:22:14 +0100
commit6d2889ba0a558100ebf7616f9769864daf5ece8e (patch)
treef1a059772341a8785b11a47047251d14a574f863 /lib
parent48737bdeca1b2426405032c115d63aec7b93aa7a (diff)
Remove dead code.
Diffstat (limited to 'lib')
-rw-r--r--lib/HACKING1
-rw-r--r--lib/packet.c10
2 files changed, 1 insertions, 10 deletions
diff --git a/lib/HACKING b/lib/HACKING
index 27745dd..83a91b5 100644
--- a/lib/HACKING
+++ b/lib/HACKING
@@ -73,6 +73,7 @@ Details (within parentheses) apply to Debian Wheezy.
- dispatch mode (planned for 0.1)
- [client] server failover / RFC3539 watchdog (planned for 0.1)
- [server] support (planned for 0.2)
+- [client] TCP keepalive
- on-your-own mode
- [DTLS] support
diff --git a/lib/packet.c b/lib/packet.c
index 17f022e..8073945 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -137,16 +137,6 @@ rs_packet_create (struct rs_connection *conn, struct rs_packet **pkt_out)
if (rpkt == NULL)
return rs_err_conn_push (conn, RSE_NOMEM, __func__);
- /*
- * This doesn't make sense; the packet identifier is constant for
- * an entire conversation. A separate API should be provided to
- * allow the application to set the packet ID, or a conversation
- * object should group related packets together.
- */
-#if 0
- rpkt->id = conn->nextid++
-#endif
-
err = nr_packet_init (rpkt, NULL, NULL,
PW_ACCESS_REQUEST,
rpkt + 1, RS_MAX_PACKET_LEN);