Skip to content

Commit bac1ccf

Browse files
committed
macho_file: Remove deprecated MachOFile#sections.
This method has been deprecated since pre-1.0.0, and doesn't do a good job of reflecting how sections are laid out in the Mach-O file. Use MachOFile#segments and SegmentCommand#sections instead.
1 parent 0a261e6 commit bac1ccf

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/macho/macho_file.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -392,16 +392,6 @@ def delete_rpath(path, _options = {})
392392
populate_fields
393393
end
394394

395-
# All sections of the segment `segment`.
396-
# @param segment [LoadCommands::SegmentCommand, LoadCommands::SegmentCommand64]
397-
# the segment being inspected
398-
# @return [Array<Sections::Section>] if the Mach-O is 32-bit
399-
# @return [Array<Sections::Section64>] if the Mach-O is 64-bit
400-
# @deprecated use {LoadCommands::SegmentCommand#sections} instead
401-
def sections(segment)
402-
segment.sections
403-
end
404-
405395
# Write all Mach-O data to the given filename.
406396
# @param filename [String] the file to write to
407397
# @return [void]

0 commit comments

Comments
 (0)