Remove unused Game instance variable protocol_version

This commit is contained in:
ice_iix 2019-05-05 17:33:10 -07:00
parent 4520f6bdae
commit 30b91f4707
1 changed files with 0 additions and 3 deletions

View File

@ -77,7 +77,6 @@ pub struct Game {
chunk_builder: chunk_builder::ChunkBuilder,
connect_reply: Option<mpsc::Receiver<Result<server::Server, protocol::Error>>>,
protocol_version: i32,
dpi_factor: f64,
last_mouse_x: f64,
@ -100,7 +99,6 @@ impl Game {
},
};
self.protocol_version = protocol_version;
let (tx, rx) = mpsc::channel();
self.connect_reply = Some(rx);
let address = address.to_owned();
@ -267,7 +265,6 @@ pub fn main() {
should_close: false,
chunk_builder: chunk_builder::ChunkBuilder::new(resource_manager, textures),
connect_reply: None,
protocol_version: protocol::SUPPORTED_PROTOCOLS[0],
dpi_factor,
last_mouse_x: 0.0,
last_mouse_y: 0.0,