| Index: src/engine/Main.cpp |
| diff --git a/src/engine/Main.cpp b/src/engine/Main.cpp |
| index 11ddf7eb13f0837c5bfeba071d9f3c9af1480bb8..52efdaf788dae06e26b1bd3cbb5e1ddcbb3fddae 100644 |
| --- a/src/engine/Main.cpp |
| +++ b/src/engine/Main.cpp |
| @@ -23,15 +23,6 @@ namespace |
| CriticalSection activeConnectionsLock; |
| HWND callbackWindow; |
| - void WriteStrings(Communication::OutputBuffer& response, |
| - const std::vector<std::string>& strings) |
| - { |
| - int32_t count = static_cast<int32_t>(strings.size()); |
| - response << count; |
| - for (int32_t i = 0; i < count; i++) |
| - response << strings[i]; |
| - } |
| - |
| void WriteSubscriptions(Communication::OutputBuffer& response, |
| const std::vector<AdblockPlus::SubscriptionPtr>& subscriptions) |
| { |
| @@ -101,7 +92,7 @@ namespace |
| { |
| std::string domain; |
| request >> domain; |
| - WriteStrings(response, filterEngine->GetElementHidingSelectors(domain)); |
| + response << filterEngine->GetElementHidingSelectors(domain); |
| break; |
| } |
| case Communication::PROC_AVAILABLE_SUBSCRIPTIONS: |
| @@ -186,7 +177,7 @@ namespace |
| } |
| } |
| - WriteStrings(response, domains); |
| + response << domains; |
| break; |
| } |
| case Communication::PROC_IS_WHITELISTED_URL: |