See #857 - removes redundant source map code.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 15 Jan 2017 11:25:15 +0000 (12:25 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 15 Jan 2017 11:26:26 +0000 (12:26 +0100)
Thanks to @alexlamsl for spotting it.

Why:

* Tracking input source map is done in #minify method already.

lib/reader/read-sources.js

index 82c34ec..fe2a01f 100644 (file)
@@ -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);
 }