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)
This commit is contained in:
parent
c1c6a00856
commit
628e4cc029
1 changed files with 3 additions and 6 deletions
|
@ -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();
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue