summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-04-05 23:31:42 +0200
committerworktycho <work.tycho@gmail.com>2017-04-05 23:31:42 +0200
commit6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2 (patch)
tree4509ebff2a5311ea126d77700c15cd577a28ef10
parentAPIDoc: Added missing IsStatic flags and corrected param types. (diff)
downloadcuberite-6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2.tar
cuberite-6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2.tar.gz
cuberite-6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2.tar.bz2
cuberite-6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2.tar.lz
cuberite-6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2.tar.xz
cuberite-6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2.tar.zst
cuberite-6c420ce5570ca4ac2aa5cabf80c3fa743d11ecf2.zip
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua21
-rw-r--r--src/Bindings/LuaFunctions.h5
2 files changed, 0 insertions, 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 = "(<b>OBSOLETE</b>, 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<unsigned int>(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