inc: remove stale and inconsistent `use_mfs_tmpvar' code

This commit is contained in:
Franco Fichtner 2015-04-27 22:38:18 +02:00
parent 1ad20825d4
commit dc6de4ae87
2 changed files with 0 additions and 12 deletions

View File

@ -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;

View File

@ -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'];