Commit dc6de4ae authored by Franco Fichtner's avatar Franco Fichtner

inc: remove stale and inconsistent `use_mfs_tmpvar' code

parent 1ad20825
......@@ -75,10 +75,6 @@ function restore_rrd()
unset($output);
@unlink($xml_file);
}
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
if (!isset($config['system']['use_mfs_tmpvar'])) {
@unlink('/conf/rrd.tgz');
}
return true;
}
return false;
......
......@@ -386,10 +386,6 @@ function services_dhcpdv4_configure()
log_error(sprintf(gettext('DHCP leases restore failed exited with %1$s, the error is: %2$s%3$s'), $dhcpreturn, $dhcprestore, "\n"));
}
}
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
if (!isset($config['system']['use_mfs_tmpvar'])) {
@unlink('/conf/dhcpleases.tgz');
}
}
$syscfg = $config['system'];
......@@ -1006,10 +1002,6 @@ function services_dhcpdv6_configure($blacklist = array())
}
}
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
if (isset($config['system']['use_mfs_tmpvar'])) {
@unlink('/conf/dhcp6leases.tgz');
}
}
$syscfg = $config['system'];
......
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