artf4107: Removed most "Init" functions from classes

They were either replaced with delegating constructors or merged into the only constructor in the class.

Change-Id: I3d35139f6ab23c719433a9f76942b02a3b07ddac
This commit is contained in:
Tyler Veness
2015-06-29 02:43:44 -07:00
parent e4a8aacc51
commit 1ab3ea670d
62 changed files with 258 additions and 525 deletions

View File

@@ -18,9 +18,12 @@ const uint32_t AnalogInput::kAccumulatorNumChannels;
const uint32_t AnalogInput::kAccumulatorChannels[] = {0, 1};
/**
* Common initialization.
* Construct an analog input.
*
* @param channel The channel number on the roboRIO to represent. 0-3 are
* on-board 4-7 are on the MXP port.
*/
void AnalogInput::InitAnalogInput(uint32_t channel) {
AnalogInput::AnalogInput(uint32_t channel) {
char buf[64];
Resource::CreateResourceObject(&inputs, kAnalogInputs);
@@ -47,14 +50,6 @@ void AnalogInput::InitAnalogInput(uint32_t channel) {
HALReport(HALUsageReporting::kResourceType_AnalogChannel, channel);
}
/**
* Construct an analog input.
*
* @param channel The channel number on the roboRIO to represent. 0-3 are
* on-board 4-7 are on the MXP port.
*/
AnalogInput::AnalogInput(uint32_t channel) { InitAnalogInput(channel); }
/**
* Channel destructor.
*/