Skip to content

Commit

Permalink
refactor: remove other unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlafroscia committed Nov 21, 2019
1 parent f0f0228 commit bb09420
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions lib/rules/require-computed-macros.js
Expand Up @@ -30,10 +30,6 @@ const ERROR_MESSAGE_EQUAL = makeErrorMessage('equal');
* @returns {boolean} Whether the node looks like `this.x && this.y && this.z` or `this.get('x') && this.get('y') && this.get('z')`.
*/
function isSimpleThisExpressionsInsideLogicalExpression(node, operator) {
if (!types.isLogicalExpression(node)) {
return false;
}

let current = node;
while (current !== null) {
if (types.isLogicalExpression(current)) {
Expand Down
11 changes: 0 additions & 11 deletions lib/utils/types.js
Expand Up @@ -13,7 +13,6 @@ module.exports = {
isConciseArrowFunctionWithCallExpression,
isConditionalExpression,
isDecorator,
isExpressionStatement,
isFunctionDeclaration,
isFunctionExpression,
isIdentifier,
Expand Down Expand Up @@ -176,16 +175,6 @@ function isDecorator(node) {
return node !== undefined && node.type === 'Decorator';
}

/**
* Check whether or not a node is an ExpressionStatement.
*
* @param {Object} node The node to check.
* @returns {boolean} Whether or not the node is an ExpressionStatement.
*/
function isExpressionStatement(node) {
return node !== undefined && node.type === 'ExpressionStatement';
}

/**
* Check whether or not a node is a FunctionDeclaration
*
Expand Down
1 change: 0 additions & 1 deletion lib/utils/utils.js
Expand Up @@ -210,7 +210,6 @@ function getSourceModuleName(node) {
false,
'`getSourceModuleName` should only be called on `MemberExpression` or `Identifier`'
);
return undefined;
}
}

Expand Down

0 comments on commit bb09420

Please sign in to comment.