Skip to content

Commit

Permalink
jq: remove more unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
asarhaddon committed Sep 29, 2024
1 parent a9f7c88 commit 9dd6884
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions impls/jq/utils.jq
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ def wrap(kind):
value: .
};

def wrap2(kind; opts):
opts + {
kind: kind,
value: .
};


def find_free_references(keys):
def _refs:
if . == null then [] else
Expand Down Expand Up @@ -74,25 +67,6 @@ def find_free_references(keys):
end;
_refs | unique;

def tomal:
(
select(type == "array") | (
map(tomal) | wrap("list")
)
) // (
select(type == "string") | (
if startswith("sym/") then
.[4:] | wrap("symbol")
else
wrap("string")
end
)
) // (
select(type == "number") | (
wrap("number")
)
);

# The following IO actions are implemented in rts.py.

def __readline:
Expand Down

0 comments on commit 9dd6884

Please sign in to comment.