Skip to content

Commit

Permalink
remove commented out code. closes #8.
Browse files Browse the repository at this point in the history
  • Loading branch information
clauswilke committed Feb 24, 2020
1 parent 1fe736a commit d8ea5cf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/grid.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#include "grid.h"

NumericVector unit_pt(NumericVector x) {
//NumericVector out(x);
//out.attr("class") = "unit";
//out.attr("valid.unit") = IntegerVector(1, 8);
//out.attr("unit") = "pt";

// create unit vector by calling back to R
Environment env = Environment::namespace_env("grid");
Function unit = env["unit"];
Expand All @@ -14,11 +9,6 @@ NumericVector unit_pt(NumericVector x) {

NumericVector unit_pt(Length x) {
NumericVector out(1, x);
//out.attr("class") = "unit";
//out.attr("valid.unit") = IntegerVector(1, 8);
//out.attr("unit") = "pt";
//return out;

return unit_pt(out);
}

Expand Down

0 comments on commit d8ea5cf

Please sign in to comment.