summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-19 15:51:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-03-19 15:51:42 -0300
commit2f5f77788fc96b4f729d4d1e1f1a37e8d9458456 (patch)
tree6b3dab4b24a5ec7ac7475ae0e957507c57d80b12
parented795d5ff4cc76195aa24ec4c0a50a2e5b835c81 (diff)
downloadlua-2f5f77788fc96b4f729d4d1e1f1a37e8d9458456.tar.gz
lua-2f5f77788fc96b4f729d4d1e1f1a37e8d9458456.tar.bz2
lua-2f5f77788fc96b4f729d4d1e1f1a37e8d9458456.zip
removed function 'luaS_eqstr' (not used anywhere)
-rw-r--r--lstring.c11
-rw-r--r--lstring.h3
2 files changed, 2 insertions, 12 deletions
diff --git a/lstring.c b/lstring.c
index 793e4880..32448ebf 100644
--- a/lstring.c
+++ b/lstring.c
@@ -1,5 +1,5 @@
1/* 1/*
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 $
3** String table (keeps all strings handled by Lua) 3** String table (keeps all strings handled by Lua)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -42,15 +42,6 @@ int luaS_eqlngstr (TString *a, TString *b) {
42} 42}
43 43
44 44
45/*
46** equality for strings
47*/
48int 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
54unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) { 45unsigned int luaS_hash (const char *str, size_t l, unsigned int seed) {
55 unsigned int h = seed ^ cast(unsigned int, l); 46 unsigned int h = seed ^ cast(unsigned int, l);
56 size_t l1; 47 size_t l1;
diff --git a/lstring.h b/lstring.h
index c9fc5d63..ecbe1cfb 100644
--- a/lstring.h
+++ b/lstring.h
@@ -1,5 +1,5 @@
1/* 1/*
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 $
3** String table (keep all strings handled by Lua) 3** String table (keep all strings handled by Lua)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -34,7 +34,6 @@
34 34
35LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); 35LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
36LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); 36LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
37LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
38LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 37LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
39LUAI_FUNC void luaS_remove (lua_State *L, TString *ts); 38LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
40LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s); 39LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);