gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/server as_environment.cpp as_environment.h


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server as_environment.cpp as_environment.h
Date: Thu, 25 Oct 2007 10:47:50 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/10/25 10:47:50

Modified files:
        server         : as_environment.cpp as_environment.h 

Log message:
        remove unused code

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_environment.cpp?cvsroot=gnash&r1=1.103&r2=1.104
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_environment.h?cvsroot=gnash&r1=1.61&r2=1.62

Patches:
Index: as_environment.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/as_environment.cpp,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -b -r1.103 -r1.104
--- as_environment.cpp  25 Oct 2007 09:37:34 -0000      1.103
+++ as_environment.cpp  25 Oct 2007 10:47:49 -0000      1.104
@@ -17,7 +17,7 @@
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //
 
-/* $Id: as_environment.cpp,v 1.103 2007/10/25 09:37:34 strk Exp $ */
+/* $Id: as_environment.cpp,v 1.104 2007/10/25 10:47:49 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -472,44 +472,6 @@
        return true;
 }
 
-#if 0
-character*
-as_environment::find_target(const as_value& val) const
-{
-       // TODO: should we reduce this whole function to
-       //       find_target(val.to_std_string()) ?
-       //       a quick test shows it would work, I'm just not sure about
-       //       edit_text_chars, that might return the text value rather
-       //       then their target ...
-
-       if ( val.is_object() )
-       {
-               boost::intrusive_ptr<as_object> obj = val.to_object();
-               assert (obj);
-               character* s=dynamic_cast<character*>(obj.get());
-#ifndef GNASH_USE_GC
-               assert(s->get_ref_count() > 1); // or the intrusive_ptr above 
going out-of-scope will kill it
-#endif // ndef GNASH_USE_GC
-               //log_msg(_("find_target is a character, returning it"));
-               return s; // might be NULL
-       }
-       else if ( val.is_string() )
-       {
-               return find_target(val.to_string());
-       }
-       else
-       {
-               // TODO: should we *force* string conversion above instead ?
-               IF_VERBOSE_ASCODING_ERRORS(
-               log_aserror(_("as_environment::find_target: '%s': "
-                       "invalid path; neither string nor object"),
-                       val.to_debug_string().c_str() );
-               );
-               return NULL;
-       }
-}
-#endif
-
 // Search for next '.' or '/' character in this word.  Return
 // a pointer to it, or to NULL if it wasn't found.
 static const char*

Index: as_environment.h
===================================================================
RCS file: /sources/gnash/gnash/server/as_environment.h,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -b -r1.61 -r1.62
--- as_environment.h    25 Oct 2007 09:37:35 -0000      1.61
+++ as_environment.h    25 Oct 2007 10:47:50 -0000      1.62
@@ -335,16 +335,6 @@
        ///
        character* find_target(const std::string& path) const;
 
-       /// \brief
-       /// Find the sprite/movie represented by the given value.
-       //
-       /// The value might be a reference to the object itself, or a
-       /// string giving a relative path name to the object.
-       ///
-       /// @@ make private ? --strk;
-       ///
-       //character* find_target(const as_value& val) const;
-
        /// Dump content of the stack to a std::ostream
        void dump_stack(std::ostream& out=std::cerr)
        {




reply via email to

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