<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -87,7 +87,6 @@ objects := msn.o \
 	   pn_dp_manager.o \
 	   cmd/cmdproc.o \
 	   cmd/command.o \
-	   cmd/history.o \
 	   cmd/msg.o \
 	   cmd/table.o \
 	   cmd/transaction.o \</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,6 @@ MSNSOURCES = msn.c \
 	     pn_siren7.c \
 	     cmd/cmdproc.c \
 	     cmd/command.c \
-	     cmd/history.c \
 	     cmd/msg.c \
 	     cmd/table.c \
 	     cmd/transaction.c \</diff>
      <filename>adium/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -26,8 +26,6 @@
 
 #include &quot;pn_log.h&quot;
 
-#include &quot;history.h&quot;
-
 #include &lt;string.h&gt;
 #include &lt;stdlib.h&gt;
 
@@ -39,8 +37,8 @@ msn_cmdproc_new (void)
     MsnCmdProc *cmdproc;
 
     cmdproc = g_new0 (MsnCmdProc, 1);
-
-    cmdproc-&gt;history = msn_history_new ();
+    cmdproc-&gt;transactions = g_hash_table_new_full (g_direct_hash, g_direct_equal,
+                                                   NULL, (GDestroyNotify) msn_transaction_unref);
 
     return cmdproc;
 }
@@ -52,8 +50,8 @@ msn_cmdproc_destroy (MsnCmdProc *cmdproc)
 
     pn_debug (&quot;cmdproc=%p&quot;, cmdproc);
 
-    msn_history_destroy (cmdproc-&gt;history);
     msn_command_free (cmdproc-&gt;last_cmd);
+    g_hash_table_destroy (cmdproc-&gt;transactions);
 
     g_free (cmdproc);
 
@@ -67,7 +65,7 @@ msn_cmdproc_flush (MsnCmdProc *cmdproc)
 
     pn_debug (&quot;cmdproc=%p&quot;, cmdproc);
 
-    msn_history_flush (cmdproc-&gt;history);
+    g_hash_table_remove_all (cmdproc-&gt;transactions);
 
     pn_log (&quot;end&quot;);
 }
@@ -89,7 +87,7 @@ show_debug_cmd (MsnCmdProc *cmdproc,
     if ((show[len - 1] == '\n') &amp;&amp; (show[len - 2] == '\r'))
         show[len - 2] = '\0';
 
-    pn_info (&quot;%c: %03d: %s&quot;, tmp, cmdproc-&gt;cmd_count, show);
+    pn_info (&quot;%c: %03d: %s&quot;, tmp, cmdproc-&gt;count, show);
 
     g_free (show);
 }
@@ -104,7 +102,8 @@ msn_cmdproc_send_trans (MsnCmdProc *cmdproc,
     g_return_if_fail (cmdproc);
     g_return_if_fail (trans);
 
-    msn_history_add (cmdproc-&gt;history, trans);
+    trans-&gt;trId = ++cmdproc-&gt;count;
+    g_hash_table_insert (cmdproc-&gt;transactions, GINT_TO_POINTER (trans-&gt;trId), trans);
 
     data = msn_transaction_to_string (trans);
 
@@ -273,7 +272,7 @@ msn_cmdproc_process_cmd (MsnCmdProc *cmdproc,
     pn_log (&quot;begin&quot;);
 
     if (cmd-&gt;tr_id)
-        cmd-&gt;trans = trans = msn_history_find (cmdproc-&gt;history, cmd-&gt;tr_id);
+        cmd-&gt;trans = trans = g_hash_table_lookup (cmdproc-&gt;transactions, GINT_TO_POINTER (cmd-&gt;tr_id));
 
     /* transaction finished. clear timeouts. */
     if (trans)</diff>
      <filename>cmd/cmdproc.c</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,6 @@
 #include &quot;transaction.h&quot;
 
 struct MsnSession;
-struct MsnHistory;
 struct PnNode;
 
 struct MsnCmdProc
@@ -39,9 +38,9 @@ struct MsnCmdProc
 
     gpointer data; /**&lt; Extra data, like the switchboard. */
     gpointer extra_data; /**&lt; Extra data. */
-    guint cmd_count;
+    guint count;
 
-    struct MsnHistory *history;
+    GHashTable *transactions;
     struct PnNode *conn;
 };
 </diff>
      <filename>cmd/cmdproc_private.h</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,6 @@ cmd_parser_test_objects := cmd_parser.o \
 			   ../io/pn_node.o \
 			   ../cmd/cmdproc.o \
 			   ../cmd/command.o \
-			   ../cmd/history.o \
 			   ../cmd/transaction.o \
 			   ../cmd/msg.o \
 			   ../pn_log.o</diff>
      <filename>tests/Makefile</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>cmd/history.c</filename>
    </removed>
    <removed>
      <filename>cmd/history.h</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>9cacfbf6da8eeec6c3f8228062e11463f4cfdc1a</id>
    </parent>
  </parents>
  <author>
    <name>Felipe Contreras</name>
    <email>felipe.contreras@gmail.com</email>
  </author>
  <url>http://github.com/felipec/msn-pecan/commit/00cedc227efc745d8822c9f631a2c6d71575558d</url>
  <id>00cedc227efc745d8822c9f631a2c6d71575558d</id>
  <committed-date>2009-07-05T05:52:57-07:00</committed-date>
  <authored-date>2009-07-04T17:08:10-07:00</authored-date>
  <message>Remove history

It's not really needed. Also, properly use cmdproc count.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;</message>
  <tree>a2f0ddb854d30471d26d04ab78fc49c968e1bcb0</tree>
  <committer>
    <name>Felipe Contreras</name>
    <email>felipe.contreras@gmail.com</email>
  </committer>
</commit>
