From fdc6c7b6ed82e6481b835cc7b6acd3135ec27924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Thu, 26 Sep 2013 19:22:59 +0200 Subject: [PATCH] Remove unused "typedef"s CLang and recent versions of GCC warn about unused "typedef"s. This change-set removes currently known instances in opm-core. --- opm/core/props/pvt/BlackoilPvtProperties.cpp | 1 - opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp | 1 - opm/core/transport/implicit/ImplicitAssembly.hpp | 2 -- opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp | 1 - 4 files changed, 5 deletions(-) diff --git a/opm/core/props/pvt/BlackoilPvtProperties.cpp b/opm/core/props/pvt/BlackoilPvtProperties.cpp index 756d69b7..217107cb 100644 --- a/opm/core/props/pvt/BlackoilPvtProperties.cpp +++ b/opm/core/props/pvt/BlackoilPvtProperties.cpp @@ -43,7 +43,6 @@ namespace Opm void BlackoilPvtProperties::init(const EclipseGridParser& deck, const int samples) { - typedef std::vector > > table_t; // If we need multiple regions, this class and the SinglePvt* classes must change. region_number_ = 0; diff --git a/opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp b/opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp index 9adb03a7..a1fa2aff 100644 --- a/opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp +++ b/opm/core/props/pvt/PvtPropertiesIncompFromDeck.cpp @@ -37,7 +37,6 @@ namespace Opm void PvtPropertiesIncompFromDeck::init(const EclipseGridParser& deck) { - typedef std::vector > > table_t; // If we need multiple regions, this class and the SinglePvt* classes must change. int region_number = 0; diff --git a/opm/core/transport/implicit/ImplicitAssembly.hpp b/opm/core/transport/implicit/ImplicitAssembly.hpp index 20958071..705af102 100644 --- a/opm/core/transport/implicit/ImplicitAssembly.hpp +++ b/opm/core/transport/implicit/ImplicitAssembly.hpp @@ -205,8 +205,6 @@ namespace Opm { const int ndof = DofPerCell; const int ndof2 = ndof * ndof; - typedef std::vector::size_type sz_t; - const double* J1 = &asm_buffer_[0]; const double* J2 = J1 + ((1*nconn_ + 1) * ndof2); diff --git a/opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp b/opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp index d201f24c..741331a0 100644 --- a/opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp +++ b/opm/core/transport/implicit/SinglePointUpwindTwoPhase.hpp @@ -593,7 +593,6 @@ namespace Opm { NewtonIterate& it ) { // Nothing to do at end of iteration in this model. (void) state; (void) g; (void) it; - typedef typename NewtonIterate::vector_type vector_t; } template