Skip to content

Commit 2f5f777

Browse files
committed
removed function 'luaS_eqstr' (not used anywhere)
1 parent ed795d5 commit 2f5f777

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

lstring.c

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lstring.c,v 2.36 2013/09/11 14:56:15 roberto Exp roberto $
2+
** $Id: lstring.c,v 2.37 2014/02/19 13:51:09 roberto Exp roberto $
33
** String table (keeps all strings handled by Lua)
44
** See Copyright Notice in lua.h
55
*/
@@ -42,15 +42,6 @@ int luaS_eqlngstr (TString *a, TString *b) {
4242
}
4343

4444

45-
/*
46-
** equality for strings
47-
*/
48-
int luaS_eqstr (TString *a, TString *b) {
49-
return (a->tsv.tt == b->tsv.tt) &&
50-
(a->tsv.tt == LUA_TSHRSTR ? eqshrstr(a, b) : luaS_eqlngstr(a, b));
51-
}
52-
53-
5445
unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) {
5546
unsigned int h = seed ^ cast(unsigned int, l);
5647
size_t l1;

lstring.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lstring.h,v 1.52 2013/08/21 20:09:51 roberto Exp roberto $
2+
** $Id: lstring.h,v 1.53 2014/02/19 13:51:09 roberto Exp roberto $
33
** String table (keep all strings handled by Lua)
44
** See Copyright Notice in lua.h
55
*/
@@ -34,7 +34,6 @@
3434

3535
LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
3636
LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
37-
LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
3837
LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
3938
LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
4039
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);

0 commit comments

Comments
 (0)