mail[Wesnoth-commits] r44432 - in /trunk/src/ai/formula: ai.cpp ai.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 20, 2010 - 12:46:
Author: silene
Date: Tue Jul 20 12:46:55 2010
New Revision: 44432

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44432&view=rev
Log:
Removed unused member ai::formula_ai::store_outcome_position.

Modified:
    trunk/src/ai/formula/ai.cpp
    trunk/src/ai/formula/ai.hpp

Modified: trunk/src/ai/formula/ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/formula/ai.cpp?rev=44432&r1=44431&r2=44432&view=diff
==============================================================================
--- trunk/src/ai/formula/ai.cpp (original)
+++ trunk/src/ai/formula/ai.cpp Tue Jul 20 12:46:55 2010
@@ -68,7 +68,6 @@
        ai_ptr_(NULL),
        cfg_(cfg),
        recursion_counter_(context.get_recursion_count()),
-       outcome_positions_(),
        keeps_cache_(),
        infinite_loop_guardian_(),
        vars_(),
@@ -135,8 +134,6 @@
                //formula_debugger fdb;
                const variant v = f.evaluate(callable,NULL);
 
-                outcome_positions_.clear();
-
                if (ai_ptr_) {
                        variant var = execute_variant(v, *ai_ptr_, true );
 
@@ -154,12 +151,6 @@
        }
 }
 
-void formula_ai::store_outcome_position(const variant& var)
-{
-    outcome_positions_.push_back(var);
-}
-
-
 variant formula_ai::make_action(game_logic::const_formula_ptr formula_, 
const game_logic::formula_callable& variables)
 {
        if (!formula_) {
@@ -174,9 +165,6 @@
        } else {
                ERR_AI << "skipped execution of action because ai context is 
not set correctly" << std::endl;
        }
-
-        //remove outcome_positions
-        outcome_positions_.clear();
 
        return res;
 }

Modified: trunk/src/ai/formula/ai.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/formula/ai.hpp?rev=44432&r1=44431&r2=44432&view=diff
==============================================================================
--- trunk/src/ai/formula/ai.hpp (original)
+++ trunk/src/ai/formula/ai.hpp Tue Jul 20 12:46:55 2010
@@ -113,8 +113,6 @@
         std::set<map_location> get_allowed_teleports(unit_map::iterator& 
unit_it) const;
        pathfind::plain_route shortest_path_calculator(const map_location& 
src, const map_location& dst, unit_map::iterator& unit_it, 
std::set<map_location>& allowed_teleports) const;
 
-        void store_outcome_position(const variant& var);
-
        /** Create a new formula from the string, using the symbol table 
which is stored in the AI.
        *
        *   @param formula_string the string from which a formula should be 
created
@@ -147,7 +145,6 @@
        variant execute_variant(const variant& var, ai_context &ai_, bool 
commandline=false);
        virtual variant get_value(const std::string& key) const;
        virtual void get_inputs(std::vector<game_logic::formula_input>* 
inputs) const;
-       std::vector<variant> outcome_positions_;
 
         map_location path_calculator(const map_location& src, const 
map_location& dst, unit_map::iterator& unit_it) const;
        mutable variant keeps_cache_;




Related Messages


Powered by MHonArc, Updated Tue Jul 20 13:00:13 2010