Skip to content

Commit

Permalink
Remove potentially unused code (#7279)
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored May 11, 2023
1 parent fbf356a commit f103d05
Showing 1 changed file with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require "dependabot/npm_and_yarn/update_checker/requirements_updater"
require "dependabot/npm_and_yarn/helpers"
require "dependabot/npm_and_yarn/update_checker/registry_finder"
require "dependabot/shared_helpers"
Expand Down Expand Up @@ -129,28 +128,6 @@ def updated_package_json_content(file)
).updated_package_json.content
end

def updated_dependencies
dependencies.map do |dep|
new_requirements = UpdateChecker::RequirementsUpdater.new(
requirements: dep.requirements,
updated_source: nil,
latest_resolvable_version: dep.version,
update_strategy: :bump_versions
).updated_requirements

Dependency.new(
name: dep.name,
version: dep.version,
previous_version: dep.previous_version,
requirements: new_requirements,
previous_requirements: dep.requirements,
package_manager: dep.package_manager,
removed: dep.removed?,
metadata: dep.metadata
)
end
end

def package_files
@package_files ||= dependency_files.select { |f| f.name.end_with?("package.json") }
end
Expand Down

0 comments on commit f103d05

Please sign in to comment.