Revert accidental commit of printf-debugging code in the test plugin.

This commit is contained in:
Benjamin Smedberg 2009-09-08 16:05:12 -04:00
parent 2d9e19df05
commit 21fc0c7806

View File

@ -247,28 +247,10 @@ NPP_SetWindow(NPP instance, NPWindow* window)
return NPERR_NO_ERROR;
}
static intptr_t gStreamCounter = 0;
NPError
NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype)
{
*stype = NP_NORMAL;
stream->pdata = reinterpret_cast<void*>(gStreamCounter++);
printf("x-test-ipc:NPP_NewStream(NPP:%p, type:%s, stream:%p, seekable:%i)\n"
" {pdata:%i\n"
" url:%s,\n"
" end:%i,\n"
" lastmodified:%i,\n"
" notifyData:%p,\n"
" headers:%s\n"
" }\n",
instance, type, stream, seekable,
reinterpret_cast<intptr_t>(stream->pdata),
stream->url, stream->end, stream->lastmodified, stream->notifyData,
stream->headers);
*stype = NP_ASFILEONLY;
return NPERR_NO_ERROR;
}