Skip to content

Commit 492ea23

Browse files
author
ABaldwinHunter
committed
remove unused helper methods
1 parent 9b49ff7 commit 492ea23

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

spec/support/helpers/analyzer_spec_helpers.rb

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,4 @@ def run_engine(config = nil, engine_class = described_class)
1313

1414
io.string
1515
end
16-
17-
def sample_flay_issue(
18-
structural_hash = "bad8b06679434a129fbfc4034d9ddad7",
19-
name = :ExpressionStatement,
20-
bonus = "*3",
21-
mass = 99,
22-
locations = sample_locations
23-
)
24-
25-
Flay::Item.new(structural_hash, name, bonus, mass, locations)
26-
end
27-
28-
def sample_locations
29-
[
30-
sample_flay_location("./foo.js", 1, nil),
31-
sample_flay_location("./foo.js", 2, nil),
32-
sample_flay_location("./foo.js", 3, nil)
33-
]
34-
end
35-
36-
def sample_flay_location(file = "./foo.js", line = 1, fuzzy = nil)
37-
Flay::Location.new(file, line, fuzzy)
38-
end
39-
40-
def sample_hashes
41-
[s(:ExpressionStatement, s(:expression, s(:CallExpression, s(:callee, s(:MemberExpression, s(:object, s(:Identifier, :console)), s(:property, s(:Identifier, :log)))), s(:arguments, s(:StringLiteral, :"hello JS!"))))), s(:ExpressionStatement, s(:expression, s(:CallExpression, s(:callee, s(:MemberExpression, s(:object, s(:Identifier, :console)), s(:property, s(:Identifier, :log)))), s(:arguments, s(:StringLiteral, :"hello JS!"))))), s(:ExpressionStatement, s(:expression, s(:CallExpression, s(:callee, s(:MemberExpression, s(:object, s(:Identifier, :console)), s(:property, s(:Identifier, :log)))), s(:arguments, s(:StringLiteral, :"hello JS!")))))]
42-
end
4316
end

0 commit comments

Comments
 (0)