Skip to content

Commit 3f05b5c

Browse files
authored
chore: remove unused vars and imports (#3682)
1 parent ce973cd commit 3f05b5c

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

packages/less/src/less-node/image-size.js

-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ export default environment => {
1111
currentFileInfo.currentDirectory : currentFileInfo.entryPath;
1212

1313
const fragmentStart = filePath.indexOf('#');
14-
let fragment = '';
1514
if (fragmentStart !== -1) {
16-
fragment = filePath.slice(fragmentStart);
1715
filePath = filePath.slice(0, fragmentStart);
1816
}
1917

packages/less/src/less-node/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import UrlFileManager from './url-file-manager';
44
import createFromEnvironment from '../less';
55
const less = createFromEnvironment(environment, [new FileManager(), new UrlFileManager()]);
66
import lesscHelper from './lessc-helper';
7-
import path from 'path';
87

98
// allow people to create less with their own environment
109
less.createFromEnvironment = createFromEnvironment;

packages/less/src/less/tree/expression.js

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import Node from './node';
22
import Paren from './paren';
33
import Comment from './comment';
44
import Dimension from './dimension';
5-
import * as Constants from '../constants';
6-
const MATH = Constants.Math;
75

86
const Expression = function(value, noSpacing) {
97
this.value = value;

0 commit comments

Comments
 (0)