[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35112 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35112 - gnunet/src/ats |
Date: |
Thu, 5 Feb 2015 20:58:37 +0100 |
Author: grothoff
Date: 2015-02-05 20:58:37 +0100 (Thu, 05 Feb 2015)
New Revision: 35112
Modified:
gnunet/src/ats/gnunet-service-ats_preferences.c
gnunet/src/ats/gnunet-service-ats_preferences.h
Log:
dead code elimination
Modified: gnunet/src/ats/gnunet-service-ats_preferences.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_preferences.c 2015-02-05 19:57:26 UTC
(rev 35111)
+++ gnunet/src/ats/gnunet-service-ats_preferences.c 2015-02-05 19:58:37 UTC
(rev 35112)
@@ -838,44 +838,6 @@
/**
- * Get the normalized preference values for a specific client and peer
- *
- * @param client client
- * @param peer the peer
- * @param pref the preference type
- * @return the value
- */
-double
-GAS_normalization_get_preferences_by_client (const struct GNUNET_SERVER_Client
*client,
- const struct GNUNET_PeerIdentity
*peer,
- enum GNUNET_ATS_PreferenceKind
pref)
-{
- struct PreferenceClient *c_cur;
- struct PreferencePeer *p_cur;
-
- /* Find preference client */
- for (c_cur = pc_head; NULL != c_cur; c_cur = c_cur->next)
- {
- if (client == c_cur->client)
- break;
- }
- if (NULL == c_cur)
- return -1.0;
-
- for (p_cur = c_cur->p_head; NULL != p_cur; p_cur = p_cur->next)
- {
- if (0 == memcmp (peer, &p_cur->id, sizeof (struct GNUNET_PeerIdentity)))
- break;
- }
- if (NULL == p_cur)
- return DEFAULT_REL_PREFERENCE; /* Not found, return default */
-
- return p_cur->f_rel[pref];
-}
-
-
-
-/**
* A performance client disconnected
*
* @param client the client
Modified: gnunet/src/ats/gnunet-service-ats_preferences.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_preferences.h 2015-02-05 19:57:26 UTC
(rev 35111)
+++ gnunet/src/ats/gnunet-service-ats_preferences.h 2015-02-05 19:58:37 UTC
(rev 35112)
@@ -62,20 +62,6 @@
/**
- * Get the normalized preference values for a specific client and peer
- *
- * @param client client
- * @param peer the peer
- * @param pref the preference type
- * @return the value
- */
-double
-GAS_normalization_get_preferences_by_client (const struct GNUNET_SERVER_Client
*client,
- const struct GNUNET_PeerIdentity
*peer,
- enum GNUNET_ATS_PreferenceKind
pref);
-
-
-/**
* Normalize an updated preference value
*
* @param client the client with this preference
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35112 - gnunet/src/ats,
gnunet <=