Drop redundant calls to Interest::setCanBePrefix(false)

Change-Id: Ib9a61700a2922a54c94c372222e3ef0d77d66de8
diff --git a/tests/unit-tests/bench.t.cpp b/tests/unit-tests/bench.t.cpp
index 5dbdb3b..d2a852c 100644
--- a/tests/unit-tests/bench.t.cpp
+++ b/tests/unit-tests/bench.t.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /*
- * Copyright (c) 2017-2021, Regents of the University of California.
+ * Copyright (c) 2017-2022, Regents of the University of California.
  *
  * This file is part of ndncert, a certificate management system based on NDN.
  *
@@ -62,8 +62,7 @@
       // std::cout << "CA Config MetaData Size: " << response.wireEncode().size() << std::endl;
       auto block = response.getContent();
       block.parse();
-      infoInterest =std::make_shared<Interest>(Name(block.get(ndn::tlv::Name)).appendSegment(0));
-      infoInterest->setCanBePrefix(false);
+      infoInterest = std::make_shared<Interest>(Name(block.get(ndn::tlv::Name)).appendSegment(0));
       // std::cout << "CA Config fetch Interest Size: " << infoInterest->wireEncode().size() << std::endl;
     }
     else {
diff --git a/tests/unit-tests/ca-module.t.cpp b/tests/unit-tests/ca-module.t.cpp
index 2a9640b..4e306ba 100644
--- a/tests/unit-tests/ca-module.t.cpp
+++ b/tests/unit-tests/ca-module.t.cpp
@@ -77,7 +77,6 @@
       auto block = response.getContent();
       block.parse();
       infoInterest = std::make_shared<Interest>(Name(block.get(ndn::tlv::Name)).appendSegment(0));
-      infoInterest->setCanBePrefix(false);
     }
     else {
       count++;
@@ -111,13 +110,10 @@
   advanceClocks(time::milliseconds(20), 60);
 
   Interest interest("/ndn/CA/PROBE");
-  interest.setCanBePrefix(false);
-
   Block paramTLV = ndn::makeEmptyBlock(ndn::tlv::ApplicationParameters);
   paramTLV.push_back(ndn::makeStringBlock(tlv::ParameterKey, "name"));
   paramTLV.push_back(ndn::makeStringBlock(tlv::ParameterValue, "zhiyi"));
   paramTLV.encode();
-
   interest.setApplicationParameters(paramTLV);
 
   int count = 0;
@@ -149,13 +145,10 @@
   advanceClocks(time::milliseconds(20), 60);
 
   Interest interest("/ndn/CA/PROBE");
-  interest.setCanBePrefix(false);
-
   Block paramTLV = ndn::makeEmptyBlock(ndn::tlv::ApplicationParameters);
   paramTLV.push_back(ndn::makeStringBlock(tlv::ParameterKey, "name"));
   paramTLV.push_back(ndn::makeStringBlock(tlv::ParameterValue, "zhiyi"));
   paramTLV.encode();
-
   interest.setApplicationParameters(paramTLV);
 
   int count = 0;
@@ -187,13 +180,10 @@
   advanceClocks(time::milliseconds(20), 60);
 
   Interest interest("/ndn/CA/PROBE");
-  interest.setCanBePrefix(false);
-
   Block paramTLV = ndn::makeEmptyBlock(ndn::tlv::ApplicationParameters);
   paramTLV.push_back(ndn::makeStringBlock(tlv::ParameterKey, "name"));
   paramTLV.push_back(ndn::makeStringBlock(tlv::ParameterValue, "zhiyi"));
   paramTLV.encode();
-
   interest.setApplicationParameters(paramTLV);
 
   int count = 0;