aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/networking/host.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-04-15 16:27:31 +0200
committerMartin Willi <martin@revosec.ch>2013-05-06 16:10:11 +0200
commit4dc83e9facf050b0aba6f974f23057797c84325f (patch)
treed171592e959082baf0567974add4278b2d47142f /src/libstrongswan/networking/host.c
parent7749eb0d2a86d1027c801d7f6d82d281e89825a2 (diff)
downloadstrongswan-4dc83e9facf050b0aba6f974f23057797c84325f.tar.bz2
strongswan-4dc83e9facf050b0aba6f974f23057797c84325f.tar.xz
host: remove unused host_t.get_differences() method
Diffstat (limited to 'src/libstrongswan/networking/host.c')
-rw-r--r--src/libstrongswan/networking/host.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libstrongswan/networking/host.c b/src/libstrongswan/networking/host.c
index 65e1b7791..c94a1597b 100644
--- a/src/libstrongswan/networking/host.c
+++ b/src/libstrongswan/networking/host.c
@@ -274,26 +274,6 @@ static bool ip_equals(private_host_t *this, private_host_t *other)
}
/**
- * Implements host_t.get_differences
- */
-static host_diff_t get_differences(host_t *this, host_t *other)
-{
- host_diff_t ret = HOST_DIFF_NONE;
-
- if (!this->ip_equals(this, other))
- {
- ret |= HOST_DIFF_ADDR;
- }
-
- if (this->get_port(this) != other->get_port(other))
- {
- ret |= HOST_DIFF_PORT;
- }
-
- return ret;
-}
-
-/**
* Implements host_t.equals
*/
static bool equals(private_host_t *this, private_host_t *other)
@@ -341,7 +321,6 @@ static private_host_t *host_create_empty(void)
.get_address = _get_address,
.get_port = _get_port,
.set_port = _set_port,
- .get_differences = get_differences,
.ip_equals = (bool (*)(host_t *,host_t *))ip_equals,
.equals = (bool (*)(host_t *,host_t *)) equals,
.is_anyaddr = _is_anyaddr,