Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: 08/04/2010 at 14:37:51 Revision: 4178 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Remove unused inline functions hip_domain_is_inet() and hip_type_is_stream(). In addition to being unused, the inline status was causing trouble on MAEMO. Modified: M lib/opphip/wrap.c === modified file 'lib/opphip/wrap.c' --- lib/opphip/wrap.c 2010-03-18 12:09:47 +0000 +++ lib/opphip/wrap.c 2010-04-08 11:36:50 +0000 @@ -191,30 +191,6 @@ } /** - * Verify if domain argument for socket() can be translated using opportunistic - * mode. - * - * @param domain the domain argument for socket() call - * @return one if the socket is translatable or zero otherwise - */ -inline int hip_domain_is_inet(int domain) -{ - return domain == PF_INET || domain == PF_INET6; -} - -/** - * Check the type argument for socket() call if it can be translated using - * opportunistic mode. - * - * @param type the type argument for socket() call - * @return one if the socket is translatable or zero otherwise - */ -inline int hip_type_is_stream_or_dgram(int type) -{ - return type == SOCK_STREAM || type == SOCK_DGRAM; -} - -/** * Verify applicability of opportunistic mode translation for the given socket * address structure. *