From: Matthias Braun Date: Thu, 13 Apr 2006 19:46:46 +0000 (+0000) Subject: not needed anymore X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8395f62affe250d02d320aabe939e18ca27982fc;p=supertux.git not needed anymore SVN-Revision: 3331 --- diff --git a/src/scripting/functions.cpp b/src/scripting/functions.cpp index 83b21974e..96694698e 100644 --- a/src/scripting/functions.cpp +++ b/src/scripting/functions.cpp @@ -228,32 +228,6 @@ void gotoend() Vector(tux->get_pos().x, tux->get_pos().y)); } -void flip() -{ - if (GameSession::current() == 0) - { - log_info << "No game session" << std::endl; - return; - } - if (GameSession::current()->get_current_level() == 0) - { - log_info << "No current level" << std::endl; - return; - } - FlipLevelTransformer flip_transformer; - flip_transformer.transform(GameSession::current()->get_current_level()); -} - -void finish() -{ - if (GameSession::current() == 0) - { - log_info << "No game session" << std::endl; - return; - } - GameSession::current()->finish(true); -} - void camera() { if (!validate_sector_player()) return; diff --git a/src/scripting/functions.hpp b/src/scripting/functions.hpp index c374d440c..6a5908311 100644 --- a/src/scripting/functions.hpp +++ b/src/scripting/functions.hpp @@ -146,16 +146,6 @@ void whereami(); void gotoend(); /** - * flip the level vertically - */ -void flip(); - -/** - * quit the level, marking it as solved - */ -void finish(); - -/** * show the camera's coordinates */ void camera();