Skip to content

Commit 30b91f4

Browse files
committed
Remove unused Game instance variable protocol_version
1 parent 4520f6b commit 30b91f4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ pub struct Game {
7777
chunk_builder: chunk_builder::ChunkBuilder,
7878

7979
connect_reply: Option<mpsc::Receiver<Result<server::Server, protocol::Error>>>,
80-
protocol_version: i32,
8180

8281
dpi_factor: f64,
8382
last_mouse_x: f64,
@@ -100,7 +99,6 @@ impl Game {
10099
},
101100
};
102101

103-
self.protocol_version = protocol_version;
104102
let (tx, rx) = mpsc::channel();
105103
self.connect_reply = Some(rx);
106104
let address = address.to_owned();
@@ -267,7 +265,6 @@ pub fn main() {
267265
should_close: false,
268266
chunk_builder: chunk_builder::ChunkBuilder::new(resource_manager, textures),
269267
connect_reply: None,
270-
protocol_version: protocol::SUPPORTED_PROTOCOLS[0],
271268
dpi_factor,
272269
last_mouse_x: 0.0,
273270
last_mouse_y: 0.0,

0 commit comments

Comments
 (0)