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

@@ -7,19 +7,6 @@
#include "DigitalInput.h"
#include "WPIErrors.h"
/**
* Create an instance of a DigitalInput.
* Creates a digital input given a channel. Common creation routine for all
* constructors.
*/
void DigitalInput::InitDigitalInput(uint32_t channel)
{
char buf[64];
m_channel = channel;
int n = sprintf(buf, "dio/%d", channel);
m_impl = new SimDigitalInput(buf);
}
/**
* Create an instance of a Digital Input class.
* Creates a digital input given a channel and uses the default module.
@@ -28,7 +15,10 @@ void DigitalInput::InitDigitalInput(uint32_t channel)
*/
DigitalInput::DigitalInput(uint32_t channel)
{
InitDigitalInput(channel);
char buf[64];
m_channel = channel;
int n = sprintf(buf, "dio/%d", channel);
m_impl = new SimDigitalInput(buf);
}
/*