Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
KitaitiMakoto committed Nov 26, 2024
1 parent 4ce87c4 commit 7d5936f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions bindings/ruby/tests/jfk_reader/jfk_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jfk_reader_get_memory_view(const VALUE obj, rb_memory_view_t *view, int flags)
short *samples = (short *)malloc(n_samples * sizeof(short));
FILE *file = fopen(audio_path_str, "rb");

fpos_t fsize = { 0 };
fseek(file, 0, SEEK_END);
fgetpos(file, &fsize);

fseek(file, 78, SEEK_SET);
fread(samples, sizeof(short), n_samples, file);
fclose(file);
Expand Down Expand Up @@ -73,10 +69,6 @@ read_jfk(int argc, VALUE *argv, VALUE obj)
short samples[n_samples];
FILE *file = fopen(audio_path_str, "rb");

fpos_t fsize = { 0 };
fseek(file, 0, SEEK_END);
fgetpos(file, &fsize);

fseek(file, 78, SEEK_SET);
fread(samples, sizeof(short), n_samples, file);
fclose(file);
Expand Down

0 comments on commit 7d5936f

Please sign in to comment.