From 302898d09c3b69ec158ab1ab2a41a68585362786 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Jan 2014 11:43:21 +0100 Subject: Remove odd code that does not make any sense For one, NPPrint.mode must be either NP_FULL or NP_EMBED, so assigning TRUE is odd. And for another, the value of printInfo->mode is read again in the next line, so assigning anything to it here looks like an error anyway. Change-Id: Icd5a7ceabd07ed8b716e2fc90b214b7da5301451 --- extensions/source/nsplugin/source/npshell.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'extensions') diff --git a/extensions/source/nsplugin/source/npshell.cxx b/extensions/source/nsplugin/source/npshell.cxx index 42b99ae35474..48fc5396e9c0 100644 --- a/extensions/source/nsplugin/source/npshell.cxx +++ b/extensions/source/nsplugin/source/npshell.cxx @@ -873,7 +873,6 @@ NPP_Print(NPP instance, NPPrint* printInfo) msg.instance_id = (plugin_Int32)instance; if(!sendMsg(&msg, sizeof(PLUGIN_MSG), 1)) debug_fprintf(NSP_LOG_APPEND, "NPP_StreamAsFile send SO_SET_WINDOW return failure \n"); - printInfo->mode = TRUE; /**************************************/ if (printInfo->mode == NP_FULL) { -- cgit v1.2.3