From 6c6010a3e40af836c9c0372401b0db705202c65f Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Fri, 18 Mar 2016 23:02:11 -0400 Subject: [PATCH] remove realpath call and associated code for showing recent files (we get recent files in the native file dialog for free) --- pd/src/s_main.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pd/src/s_main.c b/pd/src/s_main.c index 31cc2ee8e..38d79fa72 100644 --- a/pd/src/s_main.c +++ b/pd/src/s_main.c @@ -171,16 +171,6 @@ static void openit(const char *dirname, const char *filename) close (fd); glob_evalfile(0, gensym(nameptr), gensym(dirbuf)); sys_vgui("pdtk_set_current_dir {%s}\n", filename); - char actualpath[PATH_MAX]; - char *path_ptr = NULL; - path_ptr = realpath(filename, actualpath); - //sys_vgui("::pd_menus::update_recentfiles_menu .mbar.file 0\n"); - //fprintf(stderr, "%s %s %s %s %s\n", dirname, filename, - // strstr(filename, dirname), actualpath, path_ptr); - if (path_ptr != NULL) - { - sys_vgui("::pd_guiprefs::update_recentfiles \"%s\" 1\n", actualpath); - } } else error("%s: can't open", filename); -- GitLab