From 911089606376e60bd9451a85eb9558a23cde9039 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 5 Feb 2014 02:03:23 +0200 Subject: Remove older import helpers, no longer used. --- unix/main.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'unix') 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); } -- cgit v1.2.3