From 62071473a30ce08e1e5ed3f6cb7bff3518ae96c6 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Thu, 29 Aug 2013 22:01:14 +0000 Subject: [PATCH] Remove redundant quote-stripping --- wp2git.d | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp2git.d b/wp2git.d index c6828f9..70784c2 100644 --- a/wp2git.d +++ b/wp2git.d @@ -37,9 +37,6 @@ int main(string[] args) enforce(args.length==2, "No article specified"); auto name = args[1]; - if (name.length>=2 && name[0]=='"' && name[$-1]=='"') - name = name[1..$-1]; // strip quotes - enforce(spawnvp(P_WAIT, "curl", ["curl", "-d", "\"\"", "http://" ~ language ~ ".wikipedia.org/w/index.php?title=Special:Export&pages=" ~ encodeComponent(name), "-o", "history.xml"])==0, "curl error"); stderr.writefln("Loading history...");