Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hills committed Oct 22, 2011
1 parent ec45b9b commit 5dfd5cc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
21 changes: 0 additions & 21 deletions config/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,6 @@ AC_DEFINE(HAVE_BOOL)
fi
])dnl

AC_DEFUN(ICE_CXX_LONG_LONG,
[
AC_REQUIRE([AC_PROG_CXX])
AC_MSG_CHECKING(whether ${CXX} supports long long types)
AC_CACHE_VAL(ice_cv_have_long_long,
[
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_TRY_COMPILE(,[long long x; x = (long long)0;],
ice_cv_have_long_long=yes,
ice_cv_have_long_long=no)
AC_LANG_RESTORE
])
AC_MSG_RESULT($ice_cv_have_long_long)
if test "$ice_cv_have_long_long" = yes; then
AC_DEFINE(LONG_LONG,long long)
else
AC_DEFINE(LONG_LONG,long)
fi
])dnl

dnl For gcc-based (or primarily-gcc) OS's, set EXTRA_CXXFLAGS to -Wall -O4
AC_DEFUN(AC_GCC_EXTRA_CXXFLAGS, [
EXTRA_CXXFLAGS="-W -Wall -O3"
Expand Down
1 change: 0 additions & 1 deletion config/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_HOST
AC_PROG_CXX
ICE_CXX_BOOL
ICE_CXX_LONG_LONG
AC_PATH_X
if test -n "$x_includes" ; then
CXXFLAGS="$CXXFLAGS -I$x_includes"
Expand Down
15 changes: 1 addition & 14 deletions timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,7 @@ class Timer {

void start( void ) { gettimeofday( &starttime_, NULL ); }
void stop( void ) { gettimeofday( &stoptime_, NULL ); }
// reports time intervall between calls to start and stop in usec
// XXX NOTE THAT THIS SUFFERS FROM OVERFLOW!
// After 53 minutes, report() will return a negative number!
// To be safe, we should use the one that returns a double.
// Once the new function appears to work fine, this whole
// region can be removed from the file. bgrayson, 11/99
#if 0
LONG_LONG report( void ) const {
err << "This function Timer::report() should no longer be used!\n";
exit(-1);
return (stoptime_.tv_sec - starttime_.tv_sec) * 1000000
+ stoptime_.tv_usec - starttime_.tv_usec;
}
#endif

// This one uses doubles as the return value, to avoid
// overflow/sign problems.
double report_usecs(void) const {
Expand Down

0 comments on commit 5dfd5cc

Please sign in to comment.