removed redundant float native

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40543
This commit is contained in:
David Anderson 2007-02-26 08:50:25 +00:00
parent 78eb5b7747
commit 38532ccdad
2 changed files with 0 additions and 22 deletions

View File

@ -163,19 +163,6 @@ static cell_t sm_FloatRound(IPluginContext *pCtx, const cell_t *params)
return static_cast<int>(val);
}
static cell_t sm_FloatStr(IPluginContext *pCtx, const cell_t *params)
{
char *str;
pCtx->LocalToString(params[1], &str);
if (!strlen(str))
{
return 0;
}
return sp_ftoc((float)atof(str));
}
static cell_t sm_FloatFraction(IPluginContext *pCtx, const cell_t *params)
{
float val = sp_ctof(params[1]);
@ -244,7 +231,6 @@ static cell_t sm_ArcTangent2(IPluginContext *pCtx, const cell_t *params)
REGISTER_NATIVES(floatnatives)
{
{"float", sm_float},
{"FloatStr", sm_FloatStr},
{"FloatMul", sm_FloatMul},
{"FloatDiv", sm_FloatDiv},
{"FloatAdd", sm_FloatAdd},

View File

@ -41,14 +41,6 @@ enum floatround_method
*/
native Float:float(value);
/**
* Converts a string into a floating point value.
*
* @param str String to convert.
* @return Converted floating point number.
*/
native Float:FloatStr(const String:str[]);
/**
* Multiplies two floats together.
*