X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ffunctions.cpp;h=6c84d30027eca592fe27f536b4719ead2737b60d;hb=0b73428a8a9e9563cb196e4b13167de3ec5f6b02;hp=21b33bdbc23be2384b69a237d40cf72f6ccc7e7a;hpb=42de210bd2cb0e773ce0b7bd6af7bb3f456030bc;p=supertux.git diff --git a/src/scripting/functions.cpp b/src/scripting/functions.cpp index 21b33bdbc..6c84d3002 100644 --- a/src/scripting/functions.cpp +++ b/src/scripting/functions.cpp @@ -113,16 +113,6 @@ void load_level(const std::string& filename) g_screen_manager->push_screen(new GameSession(filename, GameSession::current()->get_player_status())); } -static SQInteger squirrel_read_char(SQUserPointer file) -{ - std::istream* in = reinterpret_cast (file); - char c = in->get(); - if(in->eof()) - return 0; - - return c; -} - void import(HSQUIRRELVM vm, const std::string& filename) { IFileStream in(filename);