diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 897123c57..78cf71f81 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -227,7 +227,6 @@ set(header_files model/hash-murmur3.h model/hash.h model/heap-scheduler.h - model/int-to-type.h model/int64x64-double.h model/int64x64.h model/integer.h diff --git a/src/core/model/int-to-type.h b/src/core/model/int-to-type.h deleted file mode 100644 index c5f01289f..000000000 --- a/src/core/model/int-to-type.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2007 INRIA - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation; - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -#ifndef INT_TO_TYPE_H -#define INT_TO_TYPE_H - -/** - * \file - * ns3::IntToType template class. - */ - -namespace ns3 -{ - -/** - * Convert an integer into a type. - * - * This trivial template is extremely useful, as explained in - * "Modern C++ Design", p 29, section 2.4, - * "Mapping Integral Constants to Types". - * - * For an example, see timer-impl.h - * - * \tparam v \explicit The integral constant value distinguishing this type - * from other values. - */ -template -struct IntToType -{ - /** Enumeration holding the type-specific value. */ - enum v_e - { - value = v /**< The integer value distinguishing this type. */ - }; -}; - -} // namespace ns3 - -#endif /* INT_TO_TYPE_H */ diff --git a/src/core/model/timer.h b/src/core/model/timer.h index 2734f2f50..eae0b0e58 100644 --- a/src/core/model/timer.h +++ b/src/core/model/timer.h @@ -21,7 +21,6 @@ #include "event-id.h" #include "fatal-error.h" -#include "int-to-type.h" #include "nstime.h" /**