aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomas <tomas>2006-03-13 00:06:24 +0000
committertomas <tomas>2006-03-13 00:06:24 +0000
commite100c80db4a5a1c199ada260e608aaf05c554c1f (patch)
treed855c531d5a6dbc6bef9404f219065db3e6d3ae1
parent85bb568ca29f4657dcb51e811f96cbe717e8b7eb (diff)
downloadluafilesystem-e100c80db4a5a1c199ada260e608aaf05c554c1f.tar.gz
luafilesystem-e100c80db4a5a1c199ada260e608aaf05c554c1f.tar.bz2
luafilesystem-e100c80db4a5a1c199ada260e608aaf05c554c1f.zip
Removing unused code
-rw-r--r--src/lfs.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 4a2da2d..18fff62 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -14,7 +14,7 @@
14** lfs.touch (filepath [, atime [, mtime]]) 14** lfs.touch (filepath [, atime [, mtime]])
15** lfs.unlock (fh) 15** lfs.unlock (fh)
16** 16**
17** $Id: lfs.c,v 1.30 2006/03/10 23:37:32 carregal Exp $ 17** $Id: lfs.c,v 1.31 2006/03/13 00:06:24 tomas Exp $
18*/ 18*/
19 19
20#include <errno.h> 20#include <errno.h>
@@ -210,33 +210,6 @@ static int file_unlock (lua_State *L) {
210} 210}
211 211
212 212
213/*
214static void cgilua_sleep( lua_State *L )
215{
216 unsigned int usec = (unsigned int)luaL_check_number( L, 1 );
217
218#ifndef _WIN32
219 sleep( (unsigned int)ceil( usec/1000.0 ));
220#else
221 Sleep( (DWORD)usec );
222#endif
223}
224
225static void cgilua_filesize( lua_State *L )
226{
227 struct stat info;
228 char *file = luaL_check_string( L, 1 );
229
230 if (stat(file, &info))
231 {
232 lua_pushnil( L );
233 lua_pushstring( L, "Cannot retrieve stat info from file" );
234 return;
235 }
236 lua_pushnumber(L, info.st_size);
237}
238*/
239
240static int make_dir (lua_State *L) { 213static int make_dir (lua_State *L) {
241 const char *path = luaL_checkstring (L, 1); 214 const char *path = luaL_checkstring (L, 1);
242 int fail; 215 int fail;