Skip to content

Commit

Permalink
Disable unused GWKRoundValueT and GWKClampValueT (OSGeo#5790)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk@28226 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
schwehr committed Dec 26, 2014
1 parent 48a2f0f commit 314a7e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gdal/alg/gdalwarpkernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1091,10 +1091,12 @@ static CPL_INLINE T GWKRoundValueT(double dfValue)
(T)(dfValue + 0.5);
}

#ifdef notused
template<> double GWKRoundValueT<double>(double dfValue)
{
return dfValue;
}
#endif

/************************************************************************/
/* GWKClampValueT() */
Expand All @@ -1111,10 +1113,12 @@ static CPL_INLINE T GWKClampValueT(double dfValue)
return GWKRoundValueT<T>(dfValue);
}

#ifdef notused
template<> double GWKClampValueT<double>(double dfValue)
{
return dfValue;
}
#endif

/************************************************************************/
/* GWKSetPixelValueRealT() */
Expand Down

0 comments on commit 314a7e4

Please sign in to comment.