summaryrefslogtreecommitdiff
path: root/lib/prism/debug.rb
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2023-11-02 14:01:20 -0400
committerKevin Newton <[email protected]>2023-11-03 10:13:49 -0400
commit05f5c545d232554b6ffb183d6948ad37f46df53b (patch)
tree43ab5b181b7fb31e5421a9adda59f822e0d65c45 /lib/prism/debug.rb
parentca7297efd389eca792c706326d1af138acf5a4f6 (diff)
[ruby/prism] Wire up options through the FFI API
https://github.com/ruby/prism/commit/f0aa8ad93b
Diffstat (limited to 'lib/prism/debug.rb')
-rw-r--r--lib/prism/debug.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/prism/debug.rb b/lib/prism/debug.rb
index f573d0958d..f5d19dc3df 100644
--- a/lib/prism/debug.rb
+++ b/lib/prism/debug.rb
@@ -187,13 +187,5 @@ module Prism
def self.newlines(source)
Prism.parse(source).source.offsets
end
-
- # :call-seq:
- # Debug::parse_serialize_file(filepath) -> dumped
- #
- # For the given file, parse the AST and dump it to a string.
- def self.parse_serialize_file(filepath)
- parse_serialize_file_metadata(filepath, [filepath.bytesize, filepath.b, 0].pack("LA*L"))
- end
end
end