mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 12:58:13 +00:00
configdb: some code cleanup
git-svn-id: https://svn.fhem.de/fhem/trunk@15791 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
189cbc7532
commit
927d25f989
@ -130,7 +130,6 @@ sub CommandConfigdb($$) {
|
||||
$filename = $attr{global}{modpath};
|
||||
$filename .= "/$param1";
|
||||
}
|
||||
# $ret = _cfgDB_Filedelete $filename;
|
||||
$ret = "File $filename ";
|
||||
$ret .= defined(_cfgDB_Filedelete($filename)) ? "deleted from" : "not found in";
|
||||
$ret .= " database.";
|
||||
|
@ -126,6 +126,8 @@
|
||||
#
|
||||
# 2017-08-31 - changed improve table_info for migration check
|
||||
#
|
||||
# 2018-01-05 - added show commandfile's svnid to info output
|
||||
#
|
||||
##############################################################################
|
||||
=cut
|
||||
|
||||
@ -1160,11 +1162,6 @@ sub _cfgDB_Filedelete($) {
|
||||
$fhem_dbh->commit();
|
||||
$fhem_dbh->disconnect();
|
||||
$ret = ($ret > 0) ? 1 : undef;
|
||||
# if($ret > 0) {
|
||||
# $ret = "File $filename deleted from database.";
|
||||
# } else {
|
||||
# $ret = "File $filename not found in database.";
|
||||
# }
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user