Remove stale references to 'FFI' module.

This commit is contained in:
0x1eef 2024-03-20 17:19:15 -03:00
parent 9f6eb714dc
commit d7b70643aa
2 changed files with 10 additions and 16 deletions

View file

@ -42,7 +42,4 @@ module BSD::Control
feature = available_features.find { _1.name == name.to_s } feature = available_features.find { _1.name == name.to_s }
feature ? feature : raise(Error, "feature '#{name}' wasn't found") feature ? feature : raise(Error, "feature '#{name}' wasn't found")
end end
module FFI
end
end end

View file

@ -52,7 +52,7 @@ module BSD::Control
# @return [Boolean] # @return [Boolean]
# Returns true on success. # Returns true on success.
def sysdef!(path) def sysdef!(path)
FFI.sysdef!(self, path) # FIXME: implement.
end end
# @endgroup # @endgroup
@ -102,20 +102,17 @@ module BSD::Control
end end
## ##
# @param [String] path # @!method status(path)
# The path to a file. # @param [String] path
# The path to a file.
# #
# @raise [SystemCallError] # @raise [SystemCallError]
# Might raise a number of Errno exceptions. # Might raise a number of Errno exceptions.
# #
# @return [Symbol] # @return [Symbol]
# Returns the status of a feature for a given file. # Returns the status of a feature for a given file.
# Status can be one of: `:conflict`, `:sysdef`, `:enabled`, `:disabled`. # Status could be: `:unknown`, `:enabled`, `:disabled`,
def status(path) # `:sysdef`, or `:invalid`.
FFI.status(self, path)
rescue Errno::ENOATTR
:sysdef
end
# @endgroup # @endgroup