gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r12078: Remove unused functions and


From: Bastiaan Jacques
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r12078: Remove unused functions and minor cleanup.
Date: Fri, 19 Mar 2010 04:30:48 +0100
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 12078
committer: Bastiaan Jacques <address@hidden>
branch nick: trunk
timestamp: Fri 2010-03-19 04:30:48 +0100
message:
  Remove unused functions and minor cleanup.
modified:
  plugin/plugin.cpp
  plugin/plugin.h
=== modified file 'plugin/plugin.cpp'
--- a/plugin/plugin.cpp 2010-03-19 02:32:33 +0000
+++ b/plugin/plugin.cpp 2010-03-19 03:30:48 +0000
@@ -63,6 +63,7 @@
 #include "StringPredicates.h"
 
 #include <boost/tokenizer.hpp>
+#include <boost/algorithm/string/join.hpp>
 #include <sys/param.h>
 #include <csignal>
 #include <cstdio>
@@ -495,25 +496,6 @@
     return NS_PluginGetValue(aVariable, aValue);
 }
 
-/// \brief Write a status message
-///
-/// This writes a status message to the status line at the bottom of
-/// the browser window and the console firefox was started from.
-NPError
-nsPluginInstance::WriteStatus(char *msg) const
-{
-    NPN_Status(_instance, msg);
-    std::cout << msg << std::endl;
-
-    return NPERR_NO_ERROR;
-}
-
-NPError
-nsPluginInstance::WriteStatus(std::string msg) const
-{
-    return WriteStatus(const_cast<char*>(msg.c_str()));
-}
-
 /// \brief Open a new data stream
 ///
 /// Opens a new incoming data stream, which is the flash movie we want
@@ -1087,11 +1069,8 @@
     /* Start the desired executable and go away.  */
     
 #if GNASH_PLUGIN_DEBUG > 1
-    std::cout << "Starting process: ";
-    for (int i = 0; args[i] != 0; ++i) {
-        std::cout << args[i] << " ";
-    }
-    std::cout << std::endl;
+    std::cout << "Starting process: " << boost::algorithm::join(arg_vec, " ")
+              << std::endl;
 #endif
 
     wait_for_gdb();

=== modified file 'plugin/plugin.h'
--- a/plugin/plugin.h   2010-03-18 23:33:50 +0000
+++ b/plugin/plugin.h   2010-03-19 03:30:48 +0000
@@ -77,9 +77,6 @@
     int32_t WriteReady(NPStream *stream);
     int32_t Write(NPStream *stream, int32_t offset, int32_t len, void *buffer);
 
-    NPError WriteStatus(char *msg) const;
-    NPError WriteStatus(std::string msg) const;
-
 private:
     void startProc();
     std::vector<std::string> getCmdLine(int hostfd, int controlfd);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]