]> git.mxchange.org Git - flightgear.git/commitdiff
Patches from Melchior Franz:
authordavid <david>
Wed, 6 Feb 2002 14:22:23 +0000 (14:22 +0000)
committerdavid <david>
Wed, 6 Feb 2002 14:22:23 +0000 (14:22 +0000)
  - 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)

src/Network/props.hxx

index c214cb4690be3ab9361cb76e8cdfe255ccbac9a7..5c26bd2ca3e597966b9cccdaa2b318663c60efdf 100644 (file)
@@ -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();
 };