Skip to content

Commit

Permalink
Remove unused CEF variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Jul 26, 2017
1 parent dc5a50f commit f86399d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ports/cef/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ use servo_config::opts;
use std::ffi;
use std::str;

const MAX_RENDERING_THREADS: usize = 128;

//static HOME_URL: &'static str = "http://s27.postimg.org/vqbtrolyr/servo.jpg";

static CEF_API_HASH_UNIVERSAL: &'static [u8] = b"8efd129f4afc344bd04b2feb7f73a149b6c4e27f\0";
Expand Down Expand Up @@ -57,16 +55,6 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
}
}

let rendering_threads = unsafe {
if ((*settings).rendering_threads as usize) < 1 {
1
} else if (*settings).rendering_threads as usize > MAX_RENDERING_THREADS {
MAX_RENDERING_THREADS
} else {
(*settings).rendering_threads as usize
}
};

let mut temp_opts = opts::default_opts();
temp_opts.headless = false;
temp_opts.hard_fail = false;
Expand Down

0 comments on commit f86399d

Please sign in to comment.