From 517b4f1e1189a21f60e024abf667336343d04637 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowicz Date: Sun, 15 Jan 2017 12:25:15 +0100 Subject: [PATCH] See #857 - removes redundant source map code. Thanks to @alexlamsl for spotting it. Why: * Tracking input source map is done in #minify method already. --- lib/reader/read-sources.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/reader/read-sources.js b/lib/reader/read-sources.js index 82c34ec1..fe2a01fa 100644 --- a/lib/reader/read-sources.js +++ b/lib/reader/read-sources.js @@ -49,10 +49,6 @@ function fromString(input, context, callback) { context.sourcesContent[undefined] = input; context.stats.originalSize += input.length; - if (context.options.sourceMap && (typeof context.options.sourceMap !== 'boolean')) { - trackSourceMap(context.options.sourceMap, undefined, context); - } - return fromStyles(input, context, { inline: context.options.inline }, callback); } -- 2.34.1