gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r17289 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r17289 - gnunet/src/core
Date: Fri, 7 Oct 2011 16:56:51 +0200

Author: grothoff
Date: 2011-10-07 16:56:51 +0200 (Fri, 07 Oct 2011)
New Revision: 17289

Removed:
   gnunet/src/core/gnunet-service-core_extern.c
Log:
hxing

Deleted: gnunet/src/core/gnunet-service-core_extern.c
===================================================================
--- gnunet/src/core/gnunet-service-core_extern.c        2011-10-07 14:56:07 UTC 
(rev 17288)
+++ gnunet/src/core/gnunet-service-core_extern.c        2011-10-07 14:56:51 UTC 
(rev 17289)
@@ -1,39 +0,0 @@
-/* code that should be moved outside of core/ entirely */
-
-/**
- * Merge the given performance data with the data we currently
- * track for the given neighbour.
- *
- * @param n neighbour
- * @param ats new performance data
- * @param ats_count number of records in ats
- */
-static void
-update_neighbour_performance (struct Neighbour *n,
-                              const struct GNUNET_TRANSPORT_ATS_Information
-                              *ats, uint32_t ats_count)
-{
-  uint32_t i;
-  unsigned int j;
-
-  if (ats_count == 0)
-    return;
-  for (i = 0; i < ats_count; i++)
-  {
-    for (j = 0; j < n->ats_count; j++)
-    {
-      if (n->ats[j].type == ats[i].type)
-      {
-        n->ats[j].value = ats[i].value;
-        break;
-      }
-    }
-    if (j == n->ats_count)
-    {
-      GNUNET_array_append (n->ats, n->ats_count, ats[i]);
-    }
-  }
-}
-
-
-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]