Skip to content

Commit 156ffdf

Browse files
committed
remove unused variables
1 parent 29d28f9 commit 156ffdf

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

input/bsv/bsvmovie.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ bool bsv_movie_read_deduped_state(bsv_movie_t *movie,
5959

6060
bool bsv_movie_reset_recording(bsv_movie_t *handle)
6161
{
62-
retro_ctx_serialize_info_t serial_info;
6362
size_t state_size, state_size_;
6463
uint8_t compression = handle->checkpoint_compression;
6564
#if HAVE_STATESTREAM
@@ -253,11 +252,9 @@ bool bsv_movie_load_checkpoint(bsv_movie_t *handle, uint8_t compression, uint8_t
253252
{
254253
input_driver_state_t *input_st = input_state_get_ptr();
255254
uint32_t compressed_encoded_size, encoded_size, size;
256-
uint8_t *compressed_data = NULL, *encoded_data = NULL, *state = NULL;
255+
uint8_t *compressed_data = NULL, *encoded_data = NULL;
257256
retro_ctx_serialize_info_t serial_info;
258257
bool ret = true;
259-
uint8_t *swap;
260-
size_t size_swap;
261258

262259
if (intfstream_read(handle->file, &(size),
263260
sizeof(uint32_t)) != sizeof(uint32_t))
@@ -636,7 +633,6 @@ bool bsv_movie_read_next_events(bsv_movie_t *handle, bool skip_checkpoints)
636633
}
637634
else if (next_frame_type == REPLAY_TOKEN_CHECKPOINT2_FRAME)
638635
{
639-
retro_ctx_serialize_info_t serial_info;
640636
uint8_t compression, encoding;
641637
if (intfstream_read(handle->file, &(compression), sizeof(uint8_t)) != sizeof(uint8_t) ||
642638
intfstream_read(handle->file, &(encoding), sizeof(uint8_t)) != sizeof(uint8_t))
@@ -721,7 +717,6 @@ void bsv_movie_next_frame(input_driver_state_t *input_st)
721717
&& (handle->frame_counter % (checkpoint_interval*60) == 0))
722718
{
723719
uint8_t frame_tok = REPLAY_TOKEN_CHECKPOINT2_FRAME;
724-
retro_ctx_serialize_info_t serial_info;
725720
uint8_t compression = handle->checkpoint_compression;
726721
#if HAVE_STATESTREAM
727722
uint8_t encoding = REPLAY_CHECKPOINT2_ENCODING_STATESTREAM;
@@ -1135,7 +1130,6 @@ int64_t bsv_movie_write_deduped_state(bsv_movie_t *movie, uint8_t *state, size_t
11351130
static uint64_t total_bytes_written = 0;
11361131
static retro_perf_tick_t total_encode_micros = 0;
11371132
retro_perf_tick_t start = cpu_features_get_time_usec();
1138-
size_t block_size = movie->blocks->object_size;
11391133
size_t block_byte_size = movie->blocks->object_size*4;
11401134
size_t superblock_size = movie->superblocks->object_size;
11411135
size_t superblock_byte_size = superblock_size*block_byte_size;

input/bsv/uint32s_index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ uint32s_insert_result_t uint32s_index_insert(uint32s_index_t *index, uint32_t *o
115115
size_t size_bytes = index->object_size * sizeof(uint32_t);
116116
uint32_t hash = uint32s_hash_bytes((uint8_t *)object, size_bytes);
117117
uint32_t idx;
118-
uint32_t *copy, *check;
118+
uint32_t *copy;
119119
uint32_t additions_len = RBUF_LEN(index->additions);
120120
result.index = 0;
121121
result.is_new = false;

tasks/task_movie.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ static bool bsv_movie_init_playback(bsv_movie_t *handle, const char *path)
140140
}
141141
else if (vsn >= 2)
142142
{
143-
retro_ctx_serialize_info_t serial_info;
144143
uint8_t compression, encoding;
145144
#ifdef HAVE_STATESTREAM
146145
uint32_t commit_settings = header[REPLAY_HEADER_CHECKPOINT_CONFIG_INDEX];

0 commit comments

Comments
 (0)