aboutsummaryrefslogtreecommitdiff
path: root/teensy/import.c
diff options
context:
space:
mode:
authorDave Hylands2015-10-31 21:24:47 -0700
committerDamien George2015-11-04 14:21:10 +0000
commit074d713bfb845a87e557e608f5215f53694e7d01 (patch)
tree3688db7f8d476613bc0888b4be6a01a5238b63af /teensy/import.c
parenta9f3030371094e3308b4d2150853db2ee3aa4a6b (diff)
lib/memzip: Factor out memzip from teensy/ into lib/memzip.
Diffstat (limited to 'teensy/import.c')
-rw-r--r--teensy/import.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/teensy/import.c b/teensy/import.c
deleted file mode 100644
index 2d5225b88..000000000
--- a/teensy/import.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdio.h>
-
-#include "py/lexer.h"
-#include "memzip.h"
-
-mp_import_stat_t mp_import_stat(const char *path) {
- MEMZIP_FILE_INFO info;
-
- if (memzip_stat(path, &info) != MZ_OK) {
- return MP_IMPORT_STAT_NO_EXIST;
- }
-
- if (info.is_dir) {
- return MP_IMPORT_STAT_DIR;
- }
- return MP_IMPORT_STAT_FILE;
-}