Page 1 of 1

issue-#155 Clean the sources from old commented realisations

Posted: Thu Mar 16, 2017 7:00 am
by Ivan Denisov
I suggest to clean some of the commented code in the sources of BlackBox.

Some of this commented code should not be deleted, because it makes existing code easier to understand.

However many of comments just providing the mess. The example is Dialog module:

Code: Select all

		NEW(showHook); Dialog.SetShowHook(showHook);
(*
		Hooks.showParamMsg := ShowParamMsg;
		Hooks.showParamStatus := ShowParamStatus;
*)

		NEW(dialogHook); Dialog.SetGetHook(dialogHook);
(*
		Hooks.getOK := GetOK;
		Hooks.getIntSpec := GetIntSpec0;
		Hooks.getExtSpec := GetExtSpec0;
		Hooks.getColor := ColorDialog0;
*)

(*
		Sequencers.GetIntSpec := GetIntSpec;
		Sequencers.GetExtSpec := GetExtSpec;
*)
		NEW(getSpecHook); Views.SetGetSpecHook(getSpecHook);

		HostFiles.MapParamString := Dialog.MapParamString;

		NEW(datesHook); Dates.SetHook(datesHook);
(*
		Hooks.getTime := GetTime;
		Hooks.dateToString := DateToString;
		Hooks.timeToString := TimeToString
*)
		NEW(languageHook); Dialog.SetLanguageHook(languageHook); Dialog.ResetLanguage;
		NEW(extCallHook); Dialog.SetExtCallHook(extCallHook);
		hideExtRunWindow := FALSE
	END Init;
Post here your suggestions, please.

Re: issue-#155 Clean the sources from old commented realisat

Posted: Fri May 12, 2017 6:00 pm
by Zinn
What's about this topic?
Does it make sense?
Or is it cancelled?
- Helmut

Re: issue-#155 Clean the sources from old commented realisat

Posted: Sat May 13, 2017 2:21 pm
by Josef Templ
For the Dialog module it would be good to clean it up as suggested by Ivan, I think.
Going over ALL modules is a lot of work and it has the potential to create merge conflicts with other
issues that pop up in the meantime.
If it is done, it should be done when there are no other pending issues and
it should be done quickly.
My guts feeling is that it is not worth the effort to go over all modules.

- Josef