[Liblas-commits] r1006 - in trunk/src: . detail
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Feb 10 11:26:43 EST 2009
Author: hobu
Date: Tue Feb 10 11:26:43 2009
New Revision: 1006
URL: http://liblas.org/changeset/1006
Log:
clean up commented out code
Modified:
trunk/src/detail/reader10.cpp
trunk/src/detail/reader12.cpp
trunk/src/lasreader.cpp
Modified: trunk/src/detail/reader10.cpp
==============================================================================
--- trunk/src/detail/reader10.cpp (original)
+++ trunk/src/detail/reader10.cpp Tue Feb 10 11:26:43 2009
@@ -354,23 +354,6 @@
return false;
}
-// bool ReaderImpl::ReadNextPoint(LASPoint& point, double& time)
-// {
-// // Read point data record format 1
-//
-//
-//
-// assert(LASHeader::ePointSize1 == sizeof(record) + sizeof(time));
-//
-// bool hasData = ReadNextPoint(record);
-// if (hasData)
-// {
-// detail::read_n(time, m_ifs, sizeof(double));
-// }
-//
-// return hasData;
-// }
-
bool ReaderImpl::ReadPointAt(std::size_t n, LASPoint& point, const LASHeader& header)
{
// Read point data record format 0
@@ -400,22 +383,6 @@
return true;
}
-// bool ReaderImpl::ReadPointAt(std::size_t n, PointRecord& record, double& time)
-// {
-// // Read point data record format 1
-//
-// // TODO: Replace with compile-time assert
-// assert(LASHeader::ePointSize1 == sizeof(record) + sizeof(time));
-//
-// bool hasData = ReadPointAt(n, record);
-// if (hasData)
-// {
-// detail::read_n(time, m_ifs, sizeof(double));
-// }
-//
-// return hasData;
-// }
-
std::istream& ReaderImpl::GetStream() const
{
return m_ifs;
Modified: trunk/src/detail/reader12.cpp
==============================================================================
--- trunk/src/detail/reader12.cpp (original)
+++ trunk/src/detail/reader12.cpp Tue Feb 10 11:26:43 2009
@@ -269,22 +269,6 @@
return false;
}
-// bool ReaderImpl::ReadNextPoint(detail::PointRecord& record, double& time)
-// {
-// // Read point data record format 1
-//
-// // TODO: Replace with compile-time assert
-// assert(LASHeader::ePointSize1 == sizeof(record) + sizeof(time));
-//
-// bool hasData = ReadNextPoint(record);
-// if (hasData)
-// {
-// detail::read_n(time, m_ifs, sizeof(double));
-// }
-//
-// return hasData;
-// }
-
bool ReaderImpl::ReadPointAt(std::size_t n, LASPoint& point, const LASHeader& header)
{
// Read point data record format 0
@@ -315,22 +299,6 @@
return true;
}
-// bool ReaderImpl::ReadPointAt(std::size_t n, PointRecord& record, double& time)
-// {
-// // Read point data record format 1
-//
-// // TODO: Replace with compile-time assert
-// assert(LASHeader::ePointSize1 == sizeof(record) + sizeof(time));
-//
-// bool hasData = ReadPointAt(n, record);
-// if (hasData)
-// {
-// detail::read_n(time, m_ifs, sizeof(double));
-// }
-//
-// return hasData;
-// }
-
std::istream& ReaderImpl::GetStream() const
{
return m_ifs;
Modified: trunk/src/lasreader.cpp
==============================================================================
--- trunk/src/lasreader.cpp (original)
+++ trunk/src/lasreader.cpp Tue Feb 10 11:26:43 2009
@@ -138,22 +138,6 @@
}
-void LASReader::MakePoint(double const& time)
-{
- // double const x = m_record.x * m_header.GetScaleX() + m_header.GetOffsetX();
- // double const y = m_record.y * m_header.GetScaleY() + m_header.GetOffsetY();
- // double const z = m_record.z * m_header.GetScaleZ() + m_header.GetOffsetZ();
- //
- // m_point.SetCoordinates(x, y, z);
- // m_point.SetIntensity(m_record.intensity);
- // m_point.SetScanFlags(m_record.flags);
- // m_point.SetClassification(m_record.classification);
- // m_point.SetScanAngleRank(m_record.scan_angle_rank);
- // m_point.SetUserData(m_record.user_data);
- // m_point.SetPointSourceID(m_record.point_source_id);
- // m_point.SetTime(time);
-}
-
std::istream& LASReader::GetStream() const
{
return m_pimpl->GetStream();
More information about the Liblas-commits
mailing list