[haiku-commits] r41952 - haiku/trunk/src/bin/hid_decode

  • From: mmlr@xxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 6 Jun 2011 02:50:24 +0200 (CEST)

Author: mmlr
Date: 2011-06-06 02:50:23 +0200 (Mon, 06 Jun 2011)
New Revision: 41952
Changeset: https://dev.haiku-os.org/changeset/41952

Modified:
   haiku/trunk/src/bin/hid_decode/hid_decode.cpp
Log:
Simplify hid_decode using the new HIDParser::PrintToStream() which generates the
same output.


Modified: haiku/trunk/src/bin/hid_decode/hid_decode.cpp
===================================================================
--- haiku/trunk/src/bin/hid_decode/hid_decode.cpp       2011-06-06 00:10:56 UTC 
(rev 41951)
+++ haiku/trunk/src/bin/hid_decode/hid_decode.cpp       2011-06-06 00:50:23 UTC 
(rev 41952)
@@ -54,11 +54,6 @@
                return 5;
        }
 
-       for (uint32 i = 0; i < parser.CountReports(HID_REPORT_TYPE_ANY); i++)
-               parser.ReportAt(HID_REPORT_TYPE_ANY, i)->PrintToStream();
-
-       if (parser.RootCollection() != NULL)
-               parser.RootCollection()->PrintToStream();
-
+       parser.PrintToStream();
        return 0;
 }


Other related posts:

  • » [haiku-commits] r41952 - haiku/trunk/src/bin/hid_decode - mmlr