From: david Date: Wed, 6 Feb 2002 14:22:23 +0000 (+0000) Subject: Patches from Melchior Franz: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=628e4cc02956d16acb7837bf145d0ce2e809da67;p=flightgear.git Patches from Melchior Franz: - remove buffer with class scope - remove variable 'length' (isn't used anywhere) - make process_command private (it isn't used anywhere outside, and it shouldn't be) --- diff --git a/src/Network/props.hxx b/src/Network/props.hxx index c214cb469..5c26bd2ca 100644 --- a/src/Network/props.hxx +++ b/src/Network/props.hxx @@ -39,8 +39,6 @@ const static int max_cmd_len = 256; class FGProps : public FGProtocol { - char buf[max_cmd_len]; - int length; enum Mode { PROMPT, DATA @@ -50,6 +48,9 @@ class FGProps : public FGProtocol { // tree view of property list string path; + bool reset(); + bool process_command( const char *cmd ); + public: FGProps(); @@ -60,14 +61,10 @@ public: // process work for this port bool process(); - bool process_command( const char *cmd ); // close the channel bool close(); -private: - - bool reset(); };