[Lazarus] Remove unused lines depend on SYN_LAZARUS and FPC defines

Martin lazarus at mfriebe.de
Fri Jun 1 23:59:22 CEST 2012


On 01/06/2012 22:41, Zaher Dirkey wrote:
> On Sat, Jun 2, 2012 at 12:23 AM, Martin <lazarus at mfriebe.de 
> <mailto:lazarus at mfriebe.de>> wrote:
>
>     On 01/06/2012 22:13, Zaher Dirkey wrote:
>
>         Hi, Matrin
>
>         I am working again to remove unused lines that depend on
>         SYN_LAZARUS and FPC defines (now SynEditHighlighter.pas)
>         and noticed LoadFromBorlandRegistry and LoadFromRegistry
>          become unsufule if i removed, can i remove this functions too?
>
>
>         I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3
>
>
>     OK
>
I was to quick only checked LoadFromBorlandRegistry

>
> Thanks
>
> I removed, UseUserSettings and EnumUserSettings in SynHighlighterPas.pas
> also LoadFromRegistry SaveToRegistry become not useful because it load 
> and save Delphi options
> SynHighlighterAny has this function also?
>
> if it ok, i will send the patch in bug tracker.
>
> I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3


Actually why are load/ save not useful ? (assuming windows)
They are incomplete, but they save some of the actual config

I don't even know,  why the current Load code is disabled. probably some 
minol issue (if the save code compiles)...
I don't have the time to test them now.

Best to keep the "functional changes" to separate discussion. that makes 
it easier to clean the ifdef.

----
LoadFromBorlandRegistry can still go ....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120601/72be8138/attachment-0003.html>


More information about the Lazarus mailing list