Skip to content

Commit

Permalink
Remove deprecated code 2020-11 (RobotLocomotion#14267)
Browse files Browse the repository at this point in the history
* Remove deprecated code 2020-11
  • Loading branch information
jwnimmer-tri authored Nov 2, 2020
1 parent 432c8db commit 4c96b9b
Show file tree
Hide file tree
Showing 61 changed files with 1 addition and 228,556 deletions.
13 changes: 0 additions & 13 deletions bindings/pydrake/pydrake_pybind.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

#include "pybind11/pybind11.h"

#include "drake/common/drake_deprecated.h"

// N.B. Avoid including other headers, such as `pybind11/eigen.sh` or
// `pybind11/functional.sh`, such that modules can opt-in to (and pay the cost
// for) these binding capabilities.
Expand Down Expand Up @@ -34,17 +32,6 @@ namespace py = pybind11;
/// the @ref PydrakeReturnValuePolicy "Return Value Policy" section.
using py_rvp = py::return_value_policy;

/// Used when returning `T& or `const T&`, as pybind's default behavior is to
/// copy lvalue references.
DRAKE_DEPRECATED("2020-11-01", "Please use py_rvp::reference instead")
const auto py_reference = py::return_value_policy::reference;

/// Used when returning references to objects that are internally owned by
/// `self`. Implies both `py_rvp::reference` and `py::keep_alive<0, 1>`, which
/// implies "Keep alive, reference: `return` keeps` self` alive".
DRAKE_DEPRECATED("2020-11-01", "Please use py_rvp::reference_internal instead")
const auto py_reference_internal = py::return_value_policy::reference_internal;

/// Use this when you must do manual casting - e.g. lists or tuples of nurses,
/// where the container may get discarded but the items kept. Prefer this over
/// `py::cast(obj, reference_internal, parent)` (pending full resolution of
Expand Down
6 changes: 0 additions & 6 deletions bindings/pydrake/test/pydrake_pybind_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ namespace {
GTEST_TEST(PydrakePybindTest, PyReturnValuePolicy) {
static_assert(
std::is_same_v<py_rvp, py::return_value_policy>, "Alias is wrong?");

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
EXPECT_EQ(py_rvp::reference, py_reference);
EXPECT_EQ(py_rvp::reference_internal, py_reference_internal);
#pragma GCC diagnostic pop
}

// Expects that a given Python expression `expr` evaluates to true, using
Expand Down
1 change: 0 additions & 1 deletion examples/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ INSTALLED_MODEL_PACKAGES = [
"//examples/acrobot",
"//examples/atlas",
"//examples/compass_gait",
"//examples/irb140",
"//examples/kuka_iiwa_arm",
"//examples/manipulation_station",
"//examples/multibody/cart_pole",
Expand Down
1 change: 1 addition & 0 deletions examples/README-MATLAB.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ framework:
- Glider
- HolonomicDrive
- Hubo
- IRB140
- KneedCompassGait
- Manipulator2D
- PlanarMonopodHopper
Expand Down
8 changes: 0 additions & 8 deletions examples/irb140/BUILD.bazel

This file was deleted.

14 changes: 0 additions & 14 deletions examples/irb140/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions examples/irb140/package.xml

This file was deleted.

25 changes: 0 additions & 25 deletions examples/irb140/urdf/ATI_sensor.urdf

This file was deleted.

235 changes: 0 additions & 235 deletions examples/irb140/urdf/irb_140.urdf

This file was deleted.

Loading

0 comments on commit 4c96b9b

Please sign in to comment.