gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/9] Remove nowhere used device_reset()


From: Ladislav Michl
Subject: [PATCH 4/9] Remove nowhere used device_reset()
Date: Sat, 25 Jan 2020 10:45:47 +0100

---
 common/device.c  | 5 -----
 include/device.h | 1 -
 2 files changed, 6 deletions(-)

diff --git a/common/device.c b/common/device.c
index 9b895708..e82db111 100644
--- a/common/device.c
+++ b/common/device.c
@@ -127,11 +127,6 @@ void device_close(struct gn_statemachine *state)
        state->device.device_instance = NULL;
 }
 
-void device_reset(struct gn_statemachine *state)
-{
-       return;
-}
-
 void device_setdtrrts(int dtr, int rts, struct gn_statemachine *state)
 {
        switch (state->device.type) {
diff --git a/include/device.h b/include/device.h
index d45f32b7..8e84e074 100644
--- a/include/device.h
+++ b/include/device.h
@@ -26,7 +26,6 @@ int device_open(const char *file, int with_odd_parity, int 
with_async,
                int with_hw_handshake, gn_connection_type device_type,
                struct gn_statemachine *state);
 void device_close(struct gn_statemachine *state);
-void device_reset(struct gn_statemachine *state);
 
 void device_setdtrrts(int dtr, int rts, struct gn_statemachine *state);
 void device_changespeed(int speed, struct gn_statemachine *state);
-- 
2.25.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]