diff --git a/dune/istl/matrixmatrix.hh b/dune/istl/matrixmatrix.hh
index 2b100c706878c65e73892614cd4c677337605eab..d28ba12d4d43cc5e7d2d23223aca8a92b05c8326 100644
--- a/dune/istl/matrixmatrix.hh
+++ b/dune/istl/matrixmatrix.hh
@@ -43,14 +43,11 @@ namespace Dune
                            const Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>& B,
                            F& func)
       {
-        typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::size_type size_type;
-
         if(A.M()!=B.N())
           DUNE_THROW(ISTLError, "The sizes of the matrices do not match: "<<A.M()<<"!="<<B.N());
 
         typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,n,k>,A1>::ConstRowIterator Row;
         typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,n,k>,A1>::ConstColIterator Col;
-        typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::ConstRowIterator BRow;
         typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::ConstColIterator BCol;
         for(Row row= A.begin(); row != A.end(); ++row) {
           // Loop over all column entries
@@ -81,8 +78,6 @@ namespace Dune
         typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>::ConstRowIterator Row;
         typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>::ConstColIterator Col;
         typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::ConstColIterator BCol;
-        typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,n>,A1>::size_type size_t1;
-        typedef typename Dune::BCRSMatrix<Dune::FieldMatrix<T,k,m>,A2>::size_type size_t2;
 
         for(Row row=A.begin(); row!=A.end(); ++row) {
           for(Col col=row->begin(); col!=row->end(); ++col) {
diff --git a/dune/istl/repartition.hh b/dune/istl/repartition.hh
index 93177190eb470843de73cbc33c8dded2c47677e5..4e273599c8531d63f98a79e478f807067f594fcf 100644
--- a/dune/istl/repartition.hh
+++ b/dune/istl/repartition.hh
@@ -905,7 +905,6 @@ namespace Dune
         // setup edge and weight pattern
         typedef typename  RemoteIndices::const_iterator NeighbourIterator;
         typedef typename  Dune::OwnerOverlapCopyCommunication<T1,T2>::ParallelIndexSet IndexSet;
-        typedef typename  IndexSet::LocalIndex LocalIndex;
 
         idxtype* adjp=adjncy;