Avoid notes about private type TFPGMap.PData never used
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
This is a small after-fix for #19873 (closed) : specializing TFPGMap makes now a note that PData, a private (after #19873 (closed)) type inside TFPGMap, is not used.
$ fpc -vwn a.pas
a.pas(278,15) Note: Private type "TFPGMapAnsiString
AnsiString.PData" never used
This is normal if you know what's going on :), but may be confusing to other people. Note shows a mangled name "TFPGMapAnsiString
AnsiString", and it mentions a type that is declared inside FGL unit. A programmer that isn't familiar with FGL implementation doesn't know what is the origin of PData, and he/she can't really "fix" or avoid this note.
So, I suggest to just remove/comment out TFPGMap.PData type definition in FGL unit. It really isn't used, so no harm done.
Mantis conversion info:
- Mantis ID: 20004
- OS: Debian GNU/Linux
- OS Build: (testing)
- Platform: i386
- Fixed in version: 2.6.0
- Fixed in revision: 19018 (#a640bd0e)