summaryrefslogtreecommitdiff
path: root/unix/main.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-05 02:03:23 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-05 02:03:23 +0200
commit911089606376e60bd9451a85eb9558a23cde9039 (patch)
treefeef6f9beac1fa1e146535b0186cfba2c7d92308 /unix/main.c
parent630d85120fd2b745f314e6810e41144e026ff2f3 (diff)
Remove older import helpers, no longer used.
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/unix/main.c b/unix/main.c
index f73c98ed6..d66595cd6 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -147,18 +147,6 @@ static void do_repl(void) {
}
static void do_file(const char *file) {
- // hack: set dir for import based on where this file is
- {
- const char * s = strrchr(file, '/');
- if (s != NULL) {
- int len = s - file;
- char *dir = m_new(char, len + 1);
- memcpy(dir, file, len);
- dir[len] = '\0';
- mp_import_set_directory(dir);
- }
- }
-
mp_lexer_t *lex = mp_lexer_new_from_file(file);
execute_from_lexer(lex, MP_PARSE_FILE_INPUT, false);
}