From f7a566feb7e48dd5ec8e4243f6c8a33c1a38441c Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 6 Jun 2011 00:50:23 +0000 Subject: [PATCH] Simplify hid_decode using the new HIDParser::PrintToStream() which generates the same output. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41952 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/hid_decode/hid_decode.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/bin/hid_decode/hid_decode.cpp b/src/bin/hid_decode/hid_decode.cpp index 1dcb3ff12a..3edaa1403c 100644 --- a/src/bin/hid_decode/hid_decode.cpp +++ b/src/bin/hid_decode/hid_decode.cpp @@ -54,11 +54,6 @@ main(int argc, char *argv[]) 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; }