diff options
author | George Hazan <george.hazan@gmail.com> | 2016-09-13 18:13:42 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-09-13 18:13:42 +0000 |
commit | a6b06e8fee136a38231c3c15a438fe5043ed82eb (patch) | |
tree | 8a8d792864ee2fd0e91250ab1475cb3bffecd3a3 /plugins/mRadio | |
parent | f51624f1de698b42024ac7a41470ca347ee6f996 (diff) |
more useless helpers wiped out of pascal code
git-svn-id: http://svn.miranda-ng.org/main/trunk@17293 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/mRadio')
-rw-r--r-- | plugins/mRadio/i_optdlg.inc | 2 | ||||
-rw-r--r-- | plugins/mRadio/i_search.inc | 4 | ||||
-rw-r--r-- | plugins/mRadio/rbass.pas | 2 | ||||
-rw-r--r-- | plugins/mRadio/rccenter.pas | 10 | ||||
-rw-r--r-- | plugins/mRadio/roptions.pas | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/plugins/mRadio/i_optdlg.inc b/plugins/mRadio/i_optdlg.inc index 3b13dffae6..69e9ab3971 100644 --- a/plugins/mRadio/i_optdlg.inc +++ b/plugins/mRadio/i_optdlg.inc @@ -172,7 +172,7 @@ begin if dst<>nil then
DBWriteUnicode(i,strCList,optGroup,dst)
else
- DBDeleteSetting(i,strCList,optGroup);
+ db_unset(i,strCList,optGroup);
end
else if loword(wParam)=IDC_ADD_INI then
diff --git a/plugins/mRadio/i_search.inc b/plugins/mRadio/i_search.inc index d6e65e4794..355d91f833 100644 --- a/plugins/mRadio/i_search.inc +++ b/plugins/mRadio/i_search.inc @@ -388,8 +388,8 @@ begin mFreeMem(p);
if l then
begin
- DBDeleteSetting(hContact,strCList,'NotOnList');
- DBDeleteSetting(hContact,strCList,'Hidden');
+ db_unset(hContact,strCList,'NotOnList');
+ db_unset(hContact,strCList,'Hidden');
result:=hContact;
exit;
end;
diff --git a/plugins/mRadio/rbass.pas b/plugins/mRadio/rbass.pas index 41516866ce..509d4e9057 100644 --- a/plugins/mRadio/rbass.pas +++ b/plugins/mRadio/rbass.pas @@ -185,7 +185,7 @@ begin chan:=0;
mFreeMem(StationHeader);
mFreeMem(ActiveURL);
- DBDeleteSetting(ActiveContact,strCList,optStatusMsg);
+ db_unset(ActiveContact,strCList,optStatusMsg);
MyStopBass;
end;
diff --git a/plugins/mRadio/rccenter.pas b/plugins/mRadio/rccenter.pas index 2b8f48b1a7..ef8b77bf9a 100644 --- a/plugins/mRadio/rccenter.pas +++ b/plugins/mRadio/rccenter.pas @@ -81,7 +81,7 @@ begin mFreeMem(buf);
end
else
- DBDeleteSetting(ActiveContact,strCList,optStatusMsg);
+ db_unset(ActiveContact,strCList,optStatusMsg);
end;
{$IFDEF Debug}
@@ -351,7 +351,7 @@ begin SetStatus(ActiveContact,ID_STATUS_OFFLINE);
ActiveContact:=0;
- DBDeleteSetting(0,PluginName,optActiveURL);
+ db_unset(0,PluginName,optActiveURL);
PlayStatus:=RD_STATUS_NOSTATION;
// empty message
@@ -359,10 +359,10 @@ begin RD_STATUS_STOPPED: begin
if ActiveContact<>0 then //!! fools proof
- DBDeleteSetting(ActiveContact,strCList,optStatusMsg);
+ db_unset(ActiveContact,strCList,optStatusMsg);
- DBDeleteSetting(0,PluginName,optTitle);
- DBDeleteSetting(0,PluginName,optArtist);
+ db_unset(0,PluginName,optTitle);
+ db_unset(0,PluginName,optArtist);
PlayStatus:=RD_STATUS_STOPPED;
// empty message
diff --git a/plugins/mRadio/roptions.pas b/plugins/mRadio/roptions.pas index 2932dbbcbd..59fbba0042 100644 --- a/plugins/mRadio/roptions.pas +++ b/plugins/mRadio/roptions.pas @@ -134,8 +134,8 @@ begin while j>Length(Presets) do
begin
dec(j);
- StrCopy(p ,IntToStr(num,j)); DBDeleteSetting(0,PluginName,preset);
- StrCopy(pd,num); DBDeleteSetting(0,PluginName,descr);
+ StrCopy(p ,IntToStr(num,j)); db_unset(0,PluginName,preset);
+ StrCopy(pd,num); db_unset(0,PluginName,descr);
end;
DBWriteByte(0,PluginName,optOldPreset,OldEQPreset);
DBWriteByte(0,PluginName,optPresets ,Length(Presets));
|