[Liblas-commits] hg: delete dead code

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Dec 23 14:23:13 EST 2010


details:   http://hg.liblas.orghg/rev/1e4fe91df19d
changeset: 2635:1e4fe91df19d
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Dec 23 13:23:08 2010 -0600
description:
delete dead code

diffstat:

 src/header.cpp |  28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)

diffs (38 lines):

diff -r 7c81fc8db21c -r 1e4fe91df19d src/header.cpp
--- a/src/header.cpp	Thu Dec 23 13:16:41 2010 -0600
+++ b/src/header.cpp	Thu Dec 23 13:23:08 2010 -0600
@@ -662,34 +662,6 @@
 void Header::SetSchema(const Schema& format)
 {
 
-    // // A user can use the set the header's version information and 
-    // // format information and sizes by using a PointFormat instance
-    // // in addition to setting all the settings individually by hand
-
-    // // The DataRecordLength will be set to the max of either the format's 
-    // // byte size or the pointformat's specified size according to whether 
-    // // or not it has color or time (FIXME: or waveform packets once we get to 1.3 )
-    // // The extra space that is available can be used to store LASPoint::GetExtraData.
-    // // We trim the format size to uint16_t because that's what the header stores 
-
-    // if (format.HasColor() && format.HasTime()) {
-    //     SetDataFormatId(liblas::ePointFormat3);
-    //     SetDataRecordLength(std::max(   static_cast<uint16_t>(ePointSize3),
-    //                                     static_cast<uint16_t>(format.GetByteSize())));
-    // } else if (format.HasColor()  && !format.HasTime()) {
-    //     SetDataFormatId(liblas::ePointFormat2);
-    //     SetDataRecordLength(std::max(   static_cast<uint16_t>(ePointSize2),
-    //                                     static_cast<uint16_t>(format.GetByteSize())));
-    // } else if (!format.HasColor()  && format.HasTime()) {
-    //     SetDataFormatId(liblas::ePointFormat1);
-    //     SetDataRecordLength(std::max(   static_cast<uint16_t>(ePointSize1),
-    //                                     static_cast<uint16_t>(format.GetByteSize())));
-    // } else {
-    //     SetDataFormatId(liblas::ePointFormat0);
-    //     SetDataRecordLength(std::max(   static_cast<uint16_t>(ePointSize0),
-    //                                     static_cast<uint16_t>(format.GetByteSize())));
-    // }
-    
     m_schema = format;
     
     // Reset the X, Y, Z dimensions with offset and scale values


More information about the Liblas-commits mailing list