Skip to content

Commit d29563e

Browse files
committed
Remove unused class AddFeature.
1 parent 824016c commit d29563e

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/task/task-command.h

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,6 @@ namespace dynamicgraph { namespace sot {
3232
using ::dynamicgraph::command::Command;
3333
using ::dynamicgraph::command::Value;
3434

35-
// Command AddFeature
36-
class AddFeature : public Command
37-
{
38-
public:
39-
virtual ~AddFeature() {}
40-
/// Create command and store it in Entity
41-
/// \param entity instance of Entity owning this command
42-
/// \param docstring documentation of the command
43-
AddFeature(Task& entity, const std::string& docstring) :
44-
Command(entity, boost::assign::list_of(Value::STRING), docstring)
45-
{
46-
}
47-
virtual Value doExecute()
48-
{
49-
Task& task = static_cast<Task&>(owner());
50-
std::vector<Value> values = getParameterValues();
51-
std::string featureName = values[0].value();
52-
FeatureAbstract& feature =
53-
PoolStorage::getInstance()->getFeature(featureName);
54-
task.addFeature(feature);
55-
// return void
56-
return Value();
57-
}
58-
}; // class AddFeature
59-
6035
// Command ListFeatures
6136
class ListFeatures : public Command
6237
{

0 commit comments

Comments
 (0)