From: Jakub Pawlowicz Date: Sun, 15 Jan 2017 11:25:15 +0000 (+0100) Subject: See #857 - removes redundant source map code. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=517b4f1e1189a21f60e024abf667336343d04637;p=clean-css.git See #857 - removes redundant source map code. Thanks to @alexlamsl for spotting it. Why: * Tracking input source map is done in #minify method already. --- 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); }