From e280e5728defeb5c0d362da5a905fdf429c21f8d Mon Sep 17 00:00:00 2001 From: haller Date: Thu, 7 Apr 2005 00:18:40 +0000 Subject: Suppression du code qui sert à rien --- 2005/i/robert/src/proto/proto.cc | 57 ---------------------------------------- 1 file changed, 57 deletions(-) (limited to '2005/i/robert/src/proto/proto.cc') diff --git a/2005/i/robert/src/proto/proto.cc b/2005/i/robert/src/proto/proto.cc index c8f4e1e..d65aa58 100644 --- a/2005/i/robert/src/proto/proto.cc +++ b/2005/i/robert/src/proto/proto.cc @@ -117,29 +117,6 @@ Proto::send (uint8_t command, const char *format, int a0, int a1, } } } - /* - // Conversion et saisie des aguments - if(nbArg == 1) - newArgFrame(frame, format[0], a0); - if (nbArg == 2) - { - newArgFrame(frame, format[0], a0); - newArgFrame(frame, format[1], a1); - } - if (nbArg == 3) - { - newArgFrame(frame, format[0], a0); - newArgFrame(frame, format[1], a1); - newArgFrame(frame, format[2], a2); - } - if (nbArg == 4) - { - newArgFrame(frame, format[0], a0); - newArgFrame(frame, format[1], a1); - newArgFrame(frame, format[2], a2); - newArgFrame(frame, format[3], a3); - } - */ send(frame); } @@ -149,13 +126,6 @@ Proto::decode (const Proto::Frame &frame) //bon, est-ce que c'est bien utile ça? int dummy; return decode(frame, "", dummy, dummy, dummy, dummy); - /* - //On teste si des arguments sont présents(ca serait pas bon) - if(!frame.args.empty()) - return false; - else - return true; - */ } bool @@ -163,14 +133,6 @@ Proto::decode (const Frame &frame, const char *format, int &a0) { int dummy; return decode(frame, format, a0, dummy, dummy, dummy); - /* - // On teste le format de la frame - if(!verifyFrame(frame, format, 1)) - return false; - //On décode et on envoie - a0 = decodeArg(frame, format, 0); - return true; - */ } bool @@ -178,15 +140,6 @@ Proto::decode (const Frame &frame, const char *format, int &a0, int &a1) { int dummy; return decode(frame, format, a0, a1, dummy, dummy); - /* - // On vérifie le format de la frame - if(!verifyFrame(frame, format, 2)) - return false; - // On décode et on envoie - a0 = decodeArg(frame, format, 0); - a1 = decodeArg(frame, format, 1); - return true; - */ } bool @@ -196,16 +149,6 @@ Proto::decode (const Frame &frame, const char *format, int &a0, int dummy; return decode(frame, format, a0, a1, a2, dummy); - /* - // On vérifie le format de la frame - if(!verifyFrame(frame, format, 3)) - return false; - // On décode et on envoie - a0 = decodeArg(frame, format, 0); - a1 = decodeArg(frame, format, 1); - a2 = decodeArg(frame, format, 2); - return true; - */ } bool -- cgit v1.2.3