commit 2f5f77788fc96b4f729d4d1e1f1a37e8d9458456
parent ed795d5ff4cc76195aa24ec4c0a50a2e5b835c81
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 19 Mar 2014 15:51:17 -0300
removed function 'luaS_eqstr' (not used anywhere)
Diffstat:
2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/lstring.c b/lstring.c
@@ -1,5 +1,5 @@
/*
-** $Id: lstring.c,v 2.36 2013/09/11 14:56:15 roberto Exp roberto $
+** $Id: lstring.c,v 2.37 2014/02/19 13:51:09 roberto Exp roberto $
** String table (keeps all strings handled by Lua)
** See Copyright Notice in lua.h
*/
@@ -42,15 +42,6 @@ int luaS_eqlngstr (TString *a, TString *b) {
}
-/*
-** equality for strings
-*/
-int luaS_eqstr (TString *a, TString *b) {
- return (a->tsv.tt == b->tsv.tt) &&
- (a->tsv.tt == LUA_TSHRSTR ? eqshrstr(a, b) : luaS_eqlngstr(a, b));
-}
-
-
unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) {
unsigned int h = seed ^ cast(unsigned int, l);
size_t l1;
diff --git a/lstring.h b/lstring.h
@@ -1,5 +1,5 @@
/*
-** $Id: lstring.h,v 1.52 2013/08/21 20:09:51 roberto Exp roberto $
+** $Id: lstring.h,v 1.53 2014/02/19 13:51:09 roberto Exp roberto $
** String table (keep all strings handled by Lua)
** See Copyright Notice in lua.h
*/
@@ -34,7 +34,6 @@
LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
-LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);