Commit 6cc73bde authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[3030] Removed #if 0s, that should not have been in there.

parent 2cf3214c
......@@ -60,19 +60,11 @@ NameChangeRequest::NameChangeRequest(const NameChangeType change_type,
const bool forward_change, const bool reverse_change,
const std::string& fqdn, const std::string& ip_address,
const D2Dhcid& dhcid,
#if 0
const boost::posix_time::ptime& lease_expires_on,
const uint64_t lease_expires_on,
const uint32_t lease_length)
: change_type_(change_type), forward_change_(forward_change),
reverse_change_(reverse_change), fqdn_(fqdn), ip_address_(ip_address),
#if 0
dhcid_(dhcid), lease_expires_on_(new ptime(lease_expires_on)),
dhcid_(dhcid), lease_expires_on_(lease_expires_on),
lease_length_(lease_length), status_(ST_NEW) {
// Validate the contents. This will throw a NcrMessageError if anything
......@@ -249,13 +241,6 @@ NameChangeRequest::validateContent() {
isc_throw(NcrMessageError, "DHCID cannot be blank");
#if 0
// Validate lease expiration.
if (lease_expires_on_->is_not_a_date_time()) {
isc_throw(NcrMessageError, "Invalid value for lease_expires_on");
// Ensure the request specifies at least one direction to update.
if (!forward_change_ && !reverse_change_) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment