mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
configDB - code cleanup
git-svn-id: https://svn.fhem.de/fhem/trunk@5911 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
03806d519c
commit
afaefe8d37
@ -905,42 +905,6 @@ sub _cfgDB_Move() {
|
||||
return;
|
||||
}
|
||||
|
||||
#######################################
|
||||
#
|
||||
# DEPRECATED functions
|
||||
# will be removed 2014-06-15
|
||||
#
|
||||
#######################################
|
||||
|
||||
# deprecated - replaced by cfgDB_FileRead()
|
||||
sub _cfgDB_Readfile($) {
|
||||
my ($filename) = @_;
|
||||
my @outfile = cfgDB_FileRead($filename);
|
||||
return (int(@outfile)) ? join("\n",@outfile) : undef;
|
||||
}
|
||||
|
||||
# deprecated - replaced by cfgDB_FileWrite()
|
||||
sub _cfgDB_Writefile($$) {
|
||||
my ($filename,$content) = @_;
|
||||
my @c = split(/\n/,$content);
|
||||
cfgDB_FileWrite($filename,@c);
|
||||
return;
|
||||
}
|
||||
|
||||
# deprecated - replaced by cfgDB_FileUpdate()
|
||||
sub _cfgDB_Updatefile($) {
|
||||
my ($filename) = @_;
|
||||
my $fhem_dbh = _cfgDB_Connect;
|
||||
my $id = $fhem_dbh->selectrow_array("SELECT filename from fhembinfilesave where filename = '$filename'");
|
||||
$fhem_dbh->disconnect();
|
||||
if($id) {
|
||||
my $filesize = -s $filename;
|
||||
_cfgDB_binFileimport($filename,$filesize,1) if $id;
|
||||
Log 5, "file $filename updated in configDB";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
=pod
|
||||
|
Loading…
x
Reference in New Issue
Block a user