summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dpmcgee@gmail.com>2011-11-20 22:39:57 -0600
committerDan McGee <dpmcgee@gmail.com>2011-11-20 22:39:57 -0600
commit1de53f23da464e3bef10206d0bcbbfdd156b8e31 (patch)
tree3482b96532134119924fb1fea4692649fc8578c0
parentf631768da6c242f58e92e0464f95489d00de11f8 (diff)
downloadonkyocontrol-1de53f23da464e3bef10206d0bcbbfdd156b8e31.tar.gz
onkyocontrol-1de53f23da464e3bef10206d0bcbbfdd156b8e31.zip
Remove mostly useless method
We can just use POWER_OFF directly. Signed-off-by: Dan McGee <dpmcgee@gmail.com>
-rw-r--r--onkyo.c2
-rw-r--r--receiver.c9
2 files changed, 1 insertions, 10 deletions
diff --git a/onkyo.c b/onkyo.c
index aaee43e..a768d06 100644
--- a/onkyo.c
+++ b/onkyo.c
@@ -419,7 +419,7 @@ static int open_serial_device(const char *path)
goto cleanup;
/* a few more pieces of info filled in */
- rcvr->power = initial_power_status();
+ rcvr->power = POWER_OFF;
/* queue up an initial power command */
process_command(rcvr, "power");
diff --git a/receiver.c b/receiver.c
index 1352b49..a810196 100644
--- a/receiver.c
+++ b/receiver.c
@@ -512,15 +512,6 @@ static int parse_status(struct receiver *rcvr, int size, char *status)
}
/**
- * Return the bitmask value for the initial unknown power status.
- * @return the initial power status bitmask value
- */
-enum power initial_power_status(void)
-{
- return POWER_OFF;
-}
-
-/**
* Update the power status for the given zone to the given value. This
* message may or may not be related to power; if it is not then the status
* will not be updated. If it is, perform some bitmask-foo to update the power