* * *

Author Topic: [SOLVED] Automatic deletion of empty procedures and functions  (Read 620 times)

derles

  • New member
  • *
  • Posts: 30
After updating version 1.0.10 to 1.6.4, I noticed that an editor's behavior has stopped working: the automatic deletion of empty procedures and functions.
The empty procedures disappeared after saving files, but no longer.
I can't find in Tools - Options anything to re-enable that option, if it exists.
Any advice ?
Tks.

Lazarus: 1.6.4
FPC: 3.0.2
OS: Windows 7
« Last Edit: July 17, 2017, 11:00:50 pm by derles »

howardpc

  • Hero Member
  • *****
  • Posts: 2399
Re: Automatic deletion of empty procedures and functions
« Reply #1 on: July 17, 2017, 10:28:13 pm »
Tools > Options...
In the Options dialog under the Editor node in the treeview on the left click on
    Completion and Hints
The first checkbox needs to be ticked: "Auto remove empty methods"

derles

  • New member
  • *
  • Posts: 30
Re: Automatic deletion of empty procedures and functions
« Reply #2 on: July 17, 2017, 10:59:36 pm »
Oh, so simple!
Thank you very much howardpc

ertank

  • Full Member
  • ***
  • Posts: 147
Re: [SOLVED] Automatic deletion of empty procedures and functions
« Reply #3 on: July 31, 2017, 12:53:15 am »
Using Lazarus 1.8.0RC3 that functionality is not working for me *if following met*
- Put a visual component on form.
- Make an empty implementation body for any event of that component.
- Delete componen from form.
- Save and see if empty body removed automatically when option is on.

howardpc

  • Hero Member
  • *****
  • Posts: 2399
Re: [SOLVED] Automatic deletion of empty procedures and functions
« Reply #4 on: July 31, 2017, 12:59:46 am »
The functionality is working as advertised for 1.8.0RC2, so it must be caused by a recent change.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus