Skip to content

Commit

Permalink
See #857 - removes redundant source map code.
Browse files Browse the repository at this point in the history
Thanks to @alexlamsl for spotting it.

Why:

* Tracking input source map is done in #minify method already.
  • Loading branch information
jakubpawlowicz committed Jan 15, 2017
1 parent 6c8f9c0 commit 517b4f1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/reader/read-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 517b4f1

Please sign in to comment.