diff options
| author | tomas <tomas> | 2006-03-13 00:06:24 +0000 |
|---|---|---|
| committer | tomas <tomas> | 2006-03-13 00:06:24 +0000 |
| commit | e100c80db4a5a1c199ada260e608aaf05c554c1f (patch) | |
| tree | d855c531d5a6dbc6bef9404f219065db3e6d3ae1 /src | |
| parent | 85bb568ca29f4657dcb51e811f96cbe717e8b7eb (diff) | |
| download | luafilesystem-e100c80db4a5a1c199ada260e608aaf05c554c1f.tar.gz luafilesystem-e100c80db4a5a1c199ada260e608aaf05c554c1f.tar.bz2 luafilesystem-e100c80db4a5a1c199ada260e608aaf05c554c1f.zip | |
Removing unused code
Diffstat (limited to 'src')
| -rw-r--r-- | src/lfs.c | 29 |
1 files changed, 1 insertions, 28 deletions
| @@ -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 | /* | ||
| 214 | static 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 | |||
| 225 | static 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 | |||
| 240 | static int make_dir (lua_State *L) { | 213 | static 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; |
