Skip to content

Commit 4ff6cd7

Browse files
algrszarvox
authored andcommitted
Minor code cleanup, removing commented out code.
Signed-off-by: Alex Weiss <[email protected]>
1 parent 01c1f33 commit 4ff6cd7

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

wrappers/ruby/ffi-libfreenect/lib/freenect.rb

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -48,44 +48,4 @@ def self.depth_modes
4848
self.depth_mode(ii)
4949
end
5050
end
51-
52-
# def self.lookup_video_format(fmt)
53-
# if fmt.is_a?(Numeric)
54-
# unless (p=::FFI::Freenect.freenect_get_video_mode(self.device)).null?
55-
# frame_mode = FrameMode.new(p)
56-
# else
57-
# raise DeviceError, "freenect_get_video_mode() returned a NULL frame_mode"
58-
# end
59-
# else
60-
# unless (p=::FFI::Freenect.freenect_get_video_mode(self.device)).null?
61-
# frame_mode = FrameMode.new(p)
62-
# else
63-
# raise DeviceError, "freenect_get_video_mode() returned a NULL frame_mode"
64-
# end
65-
# end
66-
#
67-
# return frame_mode[:format][:video_format]
68-
# end
69-
#
70-
# def self.lookup_video_size(fmt)
71-
# l_fmt = (fmt.is_a?(Numeric) ? FFI::Freenect::VIDEO_FORMATS[fmt] : fmt)
72-
# if l_fmt.nil? or (sz = FFI::Freenect::VIDEO_SIZES[l_fmt]).nil?
73-
# return nil
74-
# else
75-
# return sz
76-
# end
77-
# end
78-
#
79-
# def self.lookup_depth_format(fmt)
80-
# return (fmt.is_a?(Numeric) ? fmt : FFI::Freenect::DEPTH_FORMATS[fmt])
81-
# end
82-
#
83-
# def self.lookup_depth_size(fmt)
84-
# l_fmt = (fmt.is_a?(Numeric) ? FFI::Freenect::DEPTH_FORMATS[fmt] : fmt)
85-
# if l_fmt.nil? or (sz = FFI::Freenect::DEPTH_SIZES[l_fmt]).nil?
86-
# return nil
87-
# else
88-
# return sz
89-
# end
90-
# end
9151
end

0 commit comments

Comments
 (0)