diff --git a/nonlinelast.cc b/nonlinelast.cc
index b92be60f7bcc47b9a7cbf99e963fbdc7ff5be3f8..5c807a4e2c2863592bab136cfa590e9ebad47bdb 100644
--- a/nonlinelast.cc
+++ b/nonlinelast.cc
@@ -66,9 +66,6 @@ int main (int argc, char *argv[]) try
     //   Generate the grid
     // /////////////////////////////
     typedef UGGrid<dim> GridType;
-    typedef BoundaryPatch<GridType::LevelGridView> LevelBoundaryPatch;
-    typedef BoundaryPatch<GridType::LeafGridView> LeafBoundaryPatch;
-
     GridType* grid = new GridType;
 
     if (parameterSet.hasKey("parFile")) {