diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-17 08:53:21 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-17 08:53:21 +1100 |
| commit | 7f5b292b12975f58ced1e445a41c4b21a350ab9b (patch) | |
| tree | dcb82773b86346c863adb2d486bd1868c6618dca /gtk | |
| parent | 99d16b51f142281f7d81cf3f704aff0e97bd1feb (diff) | |
| download | scintilla-mirror-7f5b292b12975f58ced1e445a41c4b21a350ab9b.tar.gz | |
Remove DynamicLibrary as loading lexers with SCI_LOADLEXERLIBRARY was removed
for Scintilla 5.
Diffstat (limited to 'gtk')
| -rwxr-xr-x | gtk/PlatGTK.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index d055ac241..5ea2af191 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1955,46 +1955,6 @@ void Menu::Show(Point pt, Window &w) { #endif } -class DynamicLibraryImpl : public DynamicLibrary { -protected: - GModule *m; -public: - explicit DynamicLibraryImpl(const char *modulePath) noexcept { - m = g_module_open(modulePath, G_MODULE_BIND_LAZY); - } - // Deleted so DynamicLibraryImpl objects can not be copied. - DynamicLibraryImpl(const DynamicLibraryImpl&) = delete; - DynamicLibraryImpl(DynamicLibraryImpl&&) = delete; - DynamicLibraryImpl&operator=(const DynamicLibraryImpl&) = delete; - DynamicLibraryImpl&operator=(DynamicLibraryImpl&&) = delete; - ~DynamicLibraryImpl() override { - if (m != nullptr) - g_module_close(m); - } - - // Use g_module_symbol to get a pointer to the relevant function. - Function FindFunction(const char *name) override { - if (m != nullptr) { - gpointer fn_address = nullptr; - const gboolean status = g_module_symbol(m, name, &fn_address); - if (status) - return static_cast<Function>(fn_address); - else - return nullptr; - } else { - return nullptr; - } - } - - bool IsValid() override { - return m != nullptr; - } -}; - -DynamicLibrary *DynamicLibrary::Load(const char *modulePath) { - return static_cast<DynamicLibrary *>(new DynamicLibraryImpl(modulePath)); -} - ColourDesired Platform::Chrome() { return ColourDesired(0xe0, 0xe0, 0xe0); } |
