Permalink
Browse files

WaylandWidndow: Remove unecessary switch/case block

The checks for shell surface types are already done in UpdateShellSurface
  • Loading branch information...
1 parent 66c6c86 commit bf1dc26bb1123ac7bd874b4862b74add723ba46e @etrunko etrunko committed with kalyankondapally Nov 27, 2013
Showing with 1 addition and 15 deletions.
  1. +1 −15 wayland/window.cc
View
@@ -45,21 +45,7 @@ void WaylandWindow::SetShellType(ShellType type)
shell_surface_ = new WaylandShellSurface(this);
type_ = type;
- switch (type_) {
- case TOPLEVEL:
- shell_surface_->UpdateShellSurface(TOPLEVEL);
- break;
- case MENU:
- shell_surface_->UpdateShellSurface(MENU);
- break;
- case FULLSCREEN:
- case TRANSIENT:
- case CUSTOM:
- NOTREACHED() << "UnSupported Shell Type.";
- break;
- default:
- break;
- }
+ shell_surface_->UpdateShellSurface(type_);
}
void WaylandWindow::SetWindowTitle(const string16& title) {

0 comments on commit bf1dc26

Please sign in to comment.