Remove unused Game instance variable protocol_version
This commit is contained in:
parent
4520f6bdae
commit
30b91f4707
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue