Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Stoichitescu committed May 31, 2022
1 parent 853ffc1 commit ef7fe0e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions js/private/translate_pnpm_lock.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -269,18 +269,6 @@ def _fp_link_path(root_path, import_path, rel_path):
fail("root bazel package first party dep not supported")
return fp_link_path

def _user_workspace_root(repository_ctx):
pnpm_lock = repository_ctx.attr.pnpm_lock
segments = []
if pnpm_lock.package:
segments.extend(pnpm_lock.package.split("/"))
segments.extend(pnpm_lock.name.split("/"))
segments.pop()
user_workspace_root = repository_ctx.path(pnpm_lock).dirname
for i in segments:
user_workspace_root = user_workspace_root.dirname
return str(user_workspace_root)

def _impl(rctx):
if rctx.attr.prod and rctx.attr.dev:
fail("prod and dev attributes cannot both be set to true")
Expand Down Expand Up @@ -361,9 +349,6 @@ def link_js_packages():
optional = package_info.get("optional")
has_bin = package_info.get("hasBin")
requires_build = package_info.get("requiresBuild")
# Workaround for third party packages
# so they are brought in from the workspace
# instead of being downloaded again.
integrity = package_info.get("integrity")
transitive_closure = package_info.get("transitiveClosure")

Expand Down

0 comments on commit ef7fe0e

Please sign in to comment.