diff options
author | Dan McGee <dpmcgee@gmail.com> | 2011-11-20 22:39:57 -0600 |
---|---|---|
committer | Dan McGee <dpmcgee@gmail.com> | 2011-11-20 22:39:57 -0600 |
commit | 1de53f23da464e3bef10206d0bcbbfdd156b8e31 (patch) | |
tree | 3482b96532134119924fb1fea4692649fc8578c0 | |
parent | f631768da6c242f58e92e0464f95489d00de11f8 (diff) | |
download | onkyocontrol-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.c | 2 | ||||
-rw-r--r-- | receiver.c | 9 |
2 files changed, 1 insertions, 10 deletions
@@ -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"); @@ -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 |