Skip to content

Commit

Permalink
Fix ruby and go bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
bobqianic authored Jan 15, 2024
1 parent 96a9349 commit 4b3a211
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions bindings/go/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ func (p *Params) SetPrintProgress(v bool) {
p.print_progress = toBool(v)
}

func (p *Params) SetPrintRealtime(v bool) {
p.print_realtime = toBool(v)
}

func (p *Params) SetPrintTimestamps(v bool) {
p.print_timestamps = toBool(v)
}
Expand Down Expand Up @@ -168,9 +164,6 @@ func (p *Params) String() string {
if p.print_progress {
str += " print_progress"
}
if p.print_realtime {
str += " print_realtime"
}
if p.print_timestamps {
str += " print_timestamps"
}
Expand Down
8 changes: 0 additions & 8 deletions bindings/ruby/ext/ruby_whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,6 @@ static VALUE ruby_whisper_params_set_print_progress(VALUE self, VALUE value) {
static VALUE ruby_whisper_params_get_print_progress(VALUE self) {
BOOL_PARAMS_GETTER(self, print_progress)
}
static VALUE ruby_whisper_params_set_print_realtime(VALUE self, VALUE value) {
BOOL_PARAMS_SETTER(self, print_realtime, value)
}
static VALUE ruby_whisper_params_get_print_realtime(VALUE self) {
BOOL_PARAMS_GETTER(self, print_realtime)
}
static VALUE ruby_whisper_params_set_print_timestamps(VALUE self, VALUE value) {
BOOL_PARAMS_SETTER(self, print_timestamps, value)
}
Expand Down Expand Up @@ -396,8 +390,6 @@ void Init_whisper() {
rb_define_method(cParams, "print_special=", ruby_whisper_params_set_print_special, 1);
rb_define_method(cParams, "print_progress", ruby_whisper_params_get_print_progress, 0);
rb_define_method(cParams, "print_progress=", ruby_whisper_params_set_print_progress, 1);
rb_define_method(cParams, "print_realtime", ruby_whisper_params_get_print_realtime, 0);
rb_define_method(cParams, "print_realtime=", ruby_whisper_params_set_print_realtime, 1);
rb_define_method(cParams, "print_timestamps", ruby_whisper_params_get_print_timestamps, 0);
rb_define_method(cParams, "print_timestamps=", ruby_whisper_params_set_print_timestamps, 1);
rb_define_method(cParams, "suppress_blank", ruby_whisper_params_get_suppress_blank, 0);
Expand Down
7 changes: 0 additions & 7 deletions bindings/ruby/tests/test_whisper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ def test_print_progress
assert !@params.print_progress
end

def test_print_realtime
@params.print_realtime = true
assert @params.print_realtime
@params.print_realtime = false
assert !@params.print_realtime
end

def test_print_timestamps
@params.print_timestamps = true
assert @params.print_timestamps
Expand Down

0 comments on commit 4b3a211

Please sign in to comment.