From 33bb4d94a9660814ca2585c52ba863c77bf93136 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 12 Sep 2012 19:11:20 -0700 Subject: [PATCH] at last, remove the symlink monkeypatch for windows - we will now use symlinks on vista and above and millstone will handle falling back to copying for XP - refs #1504 --- index.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/index.js b/index.js index 1cb866ebd..e6af0932f 100755 --- a/index.js +++ b/index.js @@ -13,22 +13,8 @@ process.title = 'tilemill'; process.argv[0] = 'node'; if (process.platform === 'win32') { - // HOME is undefined on windows process.env.HOME = process.env.USERPROFILE; - - // don't attempt symlink support at all -- just copy. - // @TODO write a dotfile next to the copy with the link - // "metadata" so we can monkeypatch readlink as well. - var cprSync = require('./lib/fsutil').cprSync; - fs.symlink = function(from,to,cb) { - try { - cprSync(from, to); - return cb(); - } catch (err) { - return cb(err); - } - } } // Default --config flag to user's home .tilemill.json config file.