gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r12250: Drop unused code.


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r12250: Drop unused code.
Date: Sun, 13 Jun 2010 11:10:35 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 12250 [merge]
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Sun 2010-06-13 11:10:35 +0200
message:
  Drop unused code.
modified:
  libcore/MovieClip.cpp
  libcore/parser/SWFMovieDefinition.cpp
  libcore/vm/ExecutableCode.h
=== modified file 'libcore/MovieClip.cpp'
--- a/libcore/MovieClip.cpp     2010-06-11 12:21:46 +0000
+++ b/libcore/MovieClip.cpp     2010-06-13 08:43:46 +0000
@@ -103,12 +103,6 @@
         ExecutableCode(nTarget)
     {}
 
-
-    ExecutableCode* clone() const
-    {
-        return new ConstructEvent(*this);
-    }
-
     virtual void execute()
     {
         static_cast<MovieClip*>(target())->constructAsScriptObject();

=== modified file 'libcore/parser/SWFMovieDefinition.cpp'
--- a/libcore/parser/SWFMovieDefinition.cpp     2010-06-12 08:41:04 +0000
+++ b/libcore/parser/SWFMovieDefinition.cpp     2010-06-13 08:43:35 +0000
@@ -68,10 +68,6 @@
 namespace gnash
 {
 
-namespace {
-    template<typename T> void markMappedResources(const T& t);
-}
-
 SWFMovieLoader::SWFMovieLoader(SWFMovieDefinition& md)
     :
     _movie_def(md),
@@ -756,20 +752,4 @@
     }
 }
 
-namespace {
-
-template<typename T>
-void markMappedResources(const T& t)
-{
-    typedef typename
-        RemovePointer<typename T::value_type::second_type>::value_type
-        contained_type;
-
-    std::for_each(t.begin(), t.end(),
-            boost::bind(&contained_type::setReachable,
-                boost::bind(SecondElement<typename T::value_type>(), _1)));
-}
-
-}
-
 } // namespace gnash

=== modified file 'libcore/vm/ExecutableCode.h'
--- a/libcore/vm/ExecutableCode.h       2010-06-02 09:27:08 +0000
+++ b/libcore/vm/ExecutableCode.h       2010-06-13 08:43:46 +0000
@@ -20,17 +20,19 @@
 #define GNASH_EXECUTABLECODE_H
 
 #include <vector>
+#include <boost/noncopyable.hpp>
+
 #include "smart_ptr.h" // GNASH_USE_GC
 #include "as_function.h"
 #include "ActionExec.h"
 #include "Global_as.h"
 #include "fn_call.h"
 
-namespace gnash
-{
+namespace gnash {
 
 /// Any executable code 
-class ExecutableCode {
+class ExecutableCode : boost::noncopyable
+{
 
 public:
 
@@ -38,8 +40,6 @@
 
     virtual void execute()=0;
 
-    virtual ExecutableCode* clone() const=0;
-
     virtual ~ExecutableCode() {}
 
     virtual void setReachable() const {}
@@ -72,11 +72,6 @@
         buffer(nBuffer)
     {}
 
-    ExecutableCode* clone() const
-    {
-        return new GlobalCode(*this);
-    }
-
     virtual void execute()
     {
         if (!target()->unloaded()) {
@@ -109,12 +104,6 @@
         _buffers(buffers)
     {}
 
-
-    ExecutableCode* clone() const
-    {
-        return new EventCode(*this);
-    }
-
     /// Add an action buffer to this event handler
     //
     /// @param buffer
@@ -162,12 +151,6 @@
         _eventId(id)
     {}
 
-
-    ExecutableCode* clone() const
-    {
-        return new QueuedEvent(*this);
-    }
-
     virtual void execute()
     {
         // don't execute any events for destroyed DisplayObject.
@@ -210,12 +193,6 @@
         _arg2(arg2)
     {}
 
-
-    ExecutableCode* clone() const
-    {
-        return new DelayedFunctionCall(*this);
-    }
-
     virtual void execute()
     {
         callMethod(_obj, _name, _arg1, _arg2);


reply via email to

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