Remove unnecessary test code on Windows.

BUG=chromium:568266,chromium:567264
R=niklas.enbom@webrtc.org

Review URL: https://codereview.webrtc.org/1506203006 .

Cr-Commit-Position: refs/heads/master@{#10961}
This commit is contained in:
Tommi 2015-12-09 23:27:55 +01:00
parent 70625e5bf3
commit a6e4328680

View File

@ -31,23 +31,6 @@ namespace webrtc {
static int32_t gVoiceEngineInstanceCounter = 0;
VoiceEngine* GetVoiceEngine(const Config* config, bool owns_config) {
#if (defined _WIN32)
HMODULE hmod = LoadLibrary(TEXT("VoiceEngineTestingDynamic.dll"));
if (hmod) {
typedef VoiceEngine* (*PfnGetVoiceEngine)(void);
PfnGetVoiceEngine pfn =
(PfnGetVoiceEngine)GetProcAddress(hmod, "GetVoiceEngine");
if (pfn) {
VoiceEngine* self = pfn();
if (owns_config) {
delete config;
}
return (self);
}
}
#endif
VoiceEngineImpl* self = new VoiceEngineImpl(config, owns_config);
if (self != NULL) {
self->AddRef(); // First reference. Released in VoiceEngine::Delete.