Auto merge of #12429 - cjkenn:12412, r=Ms2ger

Remove assert statement from window.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #12412 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because simple removal of assert, no logic added or changed.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12429)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-07-13 02:00:35 -07:00 committed by GitHub
commit 39a0940d2e

View file

@ -242,7 +242,6 @@ impl Window {
fn handle_window_event(&self, event: glutin::Event) -> bool {
match event {
Event::ReceivedCharacter(ch) => {
assert!(self.pending_key_event_char.get().is_none());
if !ch.is_control() {
self.pending_key_event_char.set(Some(ch));
}