Author Topic: Remove unused images in project  (Read 5284 times)

Offline 240glt

  • PLUS+1 Developer
  • ***
  • Posts: 35
  • Karma: +1/-0
Remove unused images in project
« on: April 16, 2021, 08:27:48 AM »
Is there an easy way to find and remove unused images in the image library for a project? After many years and updates, there is probably some images that are not used. But they will probably still be compiled, extending the compilation time, and increasing the .lhx file size.

Thanks

Offline acmall

  • PLUS+1 Guru
  • *****
  • Posts: 199
  • Karma: +37/-1
Re: Remove unused images in project
« Reply #1 on: April 16, 2021, 08:59:52 AM »
If you are using the Vector Based Screen Editor there is an toolbar button in the screen editor to view and delete unused screen items.
I have not seen anything in the Classic Screen Editor but I haven't used it as much.

Offline 240glt

  • PLUS+1 Developer
  • ***
  • Posts: 35
  • Karma: +1/-0
Re: Remove unused images in project
« Reply #2 on: April 16, 2021, 03:32:19 PM »
Thanks for the info! I did not notice that feature before.

But there seems to be a problem when I selected "Delete", then I got a lot of errors for missing images when compiling. But "Remove" worked, I just had to pack the project and delete the files from the folder manually.