summaryrefslogtreecommitdiff
path: root/libproxy/extension_wpad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libproxy/extension_wpad.cpp')
-rw-r--r--libproxy/extension_wpad.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/libproxy/extension_wpad.cpp b/libproxy/extension_wpad.cpp
deleted file mode 100644
index 1f4d9b0..0000000
--- a/libproxy/extension_wpad.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "extension_wpad.hpp"
-using namespace libproxy;
-
-#include <cstring>
-
-static const char *DEFAULT_WPAD_ORDER[] = {
- "dhcp",
- "slp",
- "dns_srv",
- "dns_txt",
- "dns_alias",
- NULL
-};
-
-bool wpad_extension::operator<(const wpad_extension& other) const {
- for (int i=0 ; DEFAULT_WPAD_ORDER[i] ; i++) {
- if (strstr(other.get_base_type(), DEFAULT_WPAD_ORDER[i]))
- break;
- if (strstr(this->get_base_type(), DEFAULT_WPAD_ORDER[i]))
- return true;
- }
- return false;
-}