From 6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Wed, 5 Apr 2017 23:31:42 +0200 Subject: API: Removed function GetChar (#3664) --- Server/Plugins/APIDump/APIDesc.lua | 21 --------------------- src/Bindings/LuaFunctions.h | 5 ----- 2 files changed, 26 deletions(-) diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index 482c85f9e..ee9e4cf30 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -14175,27 +14175,6 @@ end }, Notes = "Returns a copy of the string with all quotes and backslashes escaped by a backslash", }, - GetChar = - { - Params = - { - { - Name = "Input", - Type = "string", - }, - { - Name = "Index", - Type = "number", - }, - }, - Returns = - { - { - Type = "string", - }, - }, - Notes = "(OBSOLETE, use standard Lua string.sub() instead) Returns one character from the string, specified by index. ", - }, GetIniItemSet = { Params = diff --git a/src/Bindings/LuaFunctions.h b/src/Bindings/LuaFunctions.h index 98341a131..400b08ab1 100644 --- a/src/Bindings/LuaFunctions.h +++ b/src/Bindings/LuaFunctions.h @@ -11,9 +11,4 @@ inline unsigned int GetTime() return static_cast(std::chrono::seconds(time(0)).count()); } -inline std::string GetChar( std::string & a_Str, unsigned int a_Idx) -{ - return std::string(1, a_Str[ a_Idx ]); -} - // tolua_end -- cgit v1.2.3