Tracker: move deprecated cruft to FBCPadding.cpp.
The Be Book [1] states that these are supposed to be C functions, but the comment (see diff) said they were deprecated, and the fact that they were in a .cpp file (and I checked with "nm") made them C++ functions. I can't recall any applications failing to start because these symbols were unresolved, so we might be able to just remove them... [1]: https://www.haiku-os.org/legacy-docs/bebook/BFilePanel_Overview.html
This commit is contained in:
@@ -96,6 +96,19 @@ void BFilePanel::_ReservedFilePanel8() {}
|
||||
#if __GNUC__ && __GNUC__ < 3
|
||||
extern "C" {
|
||||
|
||||
_EXPORT void
|
||||
run_open_panel__Fv()
|
||||
{
|
||||
(new TFilePanel())->Show();
|
||||
}
|
||||
|
||||
|
||||
_EXPORT void
|
||||
run_save_panel__Fv()
|
||||
{
|
||||
(new TFilePanel(B_SAVE_PANEL))->Show();
|
||||
}
|
||||
|
||||
_EXPORT BFilePanel*
|
||||
__10BFilePanel15file_panel_modeP10BMessengerP9entry_refUlbP8BMessageP10BRefFilterT5T5
|
||||
(void* self,
|
||||
|
||||
@@ -53,27 +53,6 @@ All rights reserved.
|
||||
#ifndef _IMPEXP_ROOT
|
||||
# define _IMPEXP_ROOT
|
||||
#endif
|
||||
#ifndef _IMPEXP_TRACKER
|
||||
# define _IMPEXP_TRACKER
|
||||
#endif
|
||||
|
||||
// these two calls are deprecated
|
||||
extern _IMPEXP_TRACKER void run_open_panel();
|
||||
extern _IMPEXP_TRACKER void run_save_panel();
|
||||
|
||||
|
||||
void
|
||||
run_open_panel()
|
||||
{
|
||||
(new TFilePanel())->Show();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
run_save_panel()
|
||||
{
|
||||
(new TFilePanel(B_SAVE_PANEL))->Show();
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark - BFilePanel
|
||||
|
||||
Reference in New Issue
Block a user