Skip to content

Commit 2f7c128

Browse files
committed
Remove dependency on the (deprecated) autogen framework
1 parent e42d778 commit 2f7c128

File tree

6 files changed

+23
-338
lines changed

6 files changed

+23
-338
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "ev3dev-lang"]
2-
path = ev3dev-lang
3-
url = https://github.com/ev3dev/ev3dev-lang.git
41
[submodule "tests/fake-sys"]
52
path = tests/fake-sys
63
url = https://github.com/ev3dev/ev3dev-lang-fake-sys.git

demos/ev3dev-lang-demo.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ void motor_action(motor &dev)
197197
{
198198
case 'i':
199199
cout << endl;
200-
//~autogen generic_report_status classes.motor>currentClass
201-
202200
cout << " Address: ";
203201
try { cout << dev.address() << endl; }
204202
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
@@ -277,9 +275,6 @@ void motor_action(motor &dev)
277275
cout << " Time SP: ";
278276
try { cout << dev.time_sp() << endl; }
279277
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
280-
281-
282-
//~autogen
283278
cout << endl;
284279
break;
285280
case 'c':

demos/ev3dev-lang-test.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
*/
2121

22-
//-----------------------------------------------------------------------------
23-
//~autogen autogen-header
24-
25-
// Sections of the following code were auto-generated based on spec v1.2.0.
26-
27-
//~autogen
28-
//-----------------------------------------------------------------------------
29-
3022
#include "ev3dev.h"
3123

3224
#include <iostream>
@@ -53,8 +45,6 @@ void test_sensor(const char *name)
5345
cout << endl
5446
<< "Found " << name << " sensor" << endl
5547
<< " Current properties are:" << endl;
56-
//~autogen generic_report_status classes.sensor>currentClass
57-
5848
cout << " Address: ";
5949
try { cout << dev.address() << endl; }
6050
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
@@ -79,9 +69,6 @@ void test_sensor(const char *name)
7969
cout << " Units: ";
8070
try { cout << dev.units() << endl; }
8171
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
82-
83-
84-
//~autogen
8572
cout << endl;
8673
}
8774
else
@@ -97,8 +84,6 @@ void test_motor(const char *name)
9784
cout << endl
9885
<< "Found " << name << " motor" << endl
9986
<< " Current properties are:" << endl;
100-
//~autogen generic_report_status classes.motor>currentClass
101-
10287
cout << " Address: ";
10388
try { cout << dev.address() << endl; }
10489
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
@@ -177,9 +162,6 @@ void test_motor(const char *name)
177162
cout << " Time SP: ";
178163
try { cout << dev.time_sp() << endl; }
179164
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
180-
181-
182-
//~autogen
183165
cout << endl;
184166
}
185167
else
@@ -194,8 +176,6 @@ void test_dc_motor()
194176
cout << endl
195177
<< "Found dc motor" << endl
196178
<< " Current properties are:" << endl;
197-
//~autogen generic_report_status classes.dcMotor>currentClass
198-
199179
cout << " Address: ";
200180
try { cout << dev.address() << endl; }
201181
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
@@ -229,9 +209,6 @@ void test_dc_motor()
229209
cout << " Time SP: ";
230210
try { cout << dev.time_sp() << endl; }
231211
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
232-
233-
234-
//~autogen
235212
cout << endl;
236213
}
237214
else
@@ -246,8 +223,6 @@ void test_servo_motor()
246223
cout << endl
247224
<< "Found servo motor" << endl
248225
<< " Current properties are:" << endl;
249-
//~autogen generic_report_status classes.servoMotor>currentClass
250-
251226
cout << " Address: ";
252227
try { cout << dev.address() << endl; }
253228
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
@@ -275,9 +250,6 @@ void test_servo_motor()
275250
cout << " State: ";
276251
try { cout << dev.state() << endl; }
277252
catch(...) { cout << "[" << strerror(errno) << "]" << endl; }
278-
279-
280-
//~autogen
281253
cout << endl;
282254
}
283255
else

ev3dev-lang

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)