style: Remove Servo_GetStyleVariables test special case.

This commit is contained in:
Cameron McCormack 2017-10-14 15:45:30 +08:00
parent 86a5135ffa
commit 252ff2f7c5

View file

@ -34,11 +34,7 @@ fn main() {
for line in r.lines() {
let s = line.unwrap();
for cap in matcher.captures_iter(&s) {
// GetStyleVariables is a Servo_* function, but temporarily defined
// on the Gecko side.
if &cap[1] != "GetStyleVariables" {
w.write_all(format!(" [ Servo_{0}, bindings::Servo_{0} ];\n", &cap[1]).as_bytes()).unwrap();
}
w.write_all(format!(" [ Servo_{0}, bindings::Servo_{0} ];\n", &cap[1]).as_bytes()).unwrap();
}
}