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 ? feature : raise(Error, "feature '#{name}' wasn't found")
end
module FFI
end
end

View file

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